summary refs log tree commit diff
path: root/protos
diff options
context:
space:
mode:
authorMatt Delco <delco@chromium.org>2019-09-25 11:21:51 -0700
committerCommit Bot <commit-bot@chromium.org>2019-10-23 06:22:00 +0000
commit893c1200ddd16567b184652bbf4df70df578b658 (patch)
tree92ec5efcbc38a1276d14f592ab796330d3e7d2d4 /protos
parent3156937410b99e7b27283c6dc566e72ca4de53ab (diff)
downloadcrosvm-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.proto5
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).