diff options
author | Matt Delco <delco@chromium.org> | 2019-09-25 11:21:51 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-10-23 06:22:00 +0000 |
commit | 893c1200ddd16567b184652bbf4df70df578b658 (patch) | |
tree | 92ec5efcbc38a1276d14f592ab796330d3e7d2d4 /protos | |
parent | 3156937410b99e7b27283c6dc566e72ca4de53ab (diff) | |
download | crosvm-893c1200ddd16567b184652bbf4df70df578b658.tar crosvm-893c1200ddd16567b184652bbf4df70df578b658.tar.gz crosvm-893c1200ddd16567b184652bbf4df70df578b658.tar.bz2 crosvm-893c1200ddd16567b184652bbf4df70df578b658.tar.lz crosvm-893c1200ddd16567b184652bbf4df70df578b658.tar.xz crosvm-893c1200ddd16567b184652bbf4df70df578b658.tar.zst crosvm-893c1200ddd16567b184652bbf4df70df578b658.zip |
crosvm: defer IPC on set calls
If a plugin makes a set call on vcpu registers then we can improve performance by deferring the IPC and instead conbining the request with the next resume call. BUG=None TEST=build and run. Change-Id: I4eb54a3f6eb30c98971aa2f099e3ea5899767eed Signed-off-by: Matt Delco <delco@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1825262 Reviewed-by: Zach Reizner <zachr@chromium.org>
Diffstat (limited to 'protos')
-rw-r--r-- | protos/src/plugin.proto | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/protos/src/plugin.proto b/protos/src/plugin.proto index 332ed5d..b000bf4 100644 --- a/protos/src/plugin.proto +++ b/protos/src/plugin.proto @@ -268,6 +268,11 @@ message VcpuRequest { // The data is only necessary for non-write (read) I/O accesses. In all other cases, data is // ignored. bytes data = 1; + + // The following tracks what deferred set calls to apply. + bytes regs = 2; + bytes sregs = 3; + bytes debugregs = 4; } // Each type refers to certain piece of VCPU state (a set registers, or something else). |