summary refs log tree commit diff
path: root/protos
diff options
context:
space:
mode:
authorMatt Delco <delco@chromium.org>2020-02-13 14:08:04 -0800
committerCommit Bot <commit-bot@chromium.org>2020-02-20 02:12:03 +0000
commite73414db487afd4bebd2fb60ca80693ee6349cf5 (patch)
treeadf53724c2db3f7c21e7d85ba9df6b6354ca327a /protos
parentc469580e6c9b83172ba58e8305c6e5c11acfe186 (diff)
downloadcrosvm-e73414db487afd4bebd2fb60ca80693ee6349cf5.tar
crosvm-e73414db487afd4bebd2fb60ca80693ee6349cf5.tar.gz
crosvm-e73414db487afd4bebd2fb60ca80693ee6349cf5.tar.bz2
crosvm-e73414db487afd4bebd2fb60ca80693ee6349cf5.tar.lz
crosvm-e73414db487afd4bebd2fb60ca80693ee6349cf5.tar.xz
crosvm-e73414db487afd4bebd2fb60ca80693ee6349cf5.tar.zst
crosvm-e73414db487afd4bebd2fb60ca80693ee6349cf5.zip
crosvm: add ability to enable caps on vcpu
This change primarily adds functionality to allow kvm features to be
enabled on a vcpu (most of the current infra only supporst the ioctl for
the vm fd).

BUG=b:144746965
TEST=ran 'build_test' and verified that the added tests passed.

Change-Id: I30c00b6f462377c21d477602ceba5853df953b37
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2055883
Tested-by: Matt Delco <delco@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Dmitry Torokhov <dtor@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Matt Delco <delco@chromium.org>
Diffstat (limited to 'protos')
-rw-r--r--protos/src/plugin.proto8
1 files changed, 8 insertions, 0 deletions
diff --git a/protos/src/plugin.proto b/protos/src/plugin.proto
index 783d23b..442eef0 100644
--- a/protos/src/plugin.proto
+++ b/protos/src/plugin.proto
@@ -359,6 +359,10 @@ message VcpuRequest {
     message Shutdown {
     }
 
+    message EnableCapability {
+        uint32 capability = 1;
+    }
+
     // The type of the message is determined by which of these oneof fields is present in the
     // protobuf.
     oneof message {
@@ -371,6 +375,7 @@ message VcpuRequest {
         SetCpuid set_cpuid = 7;
         Shutdown shutdown = 8;
         CpuidRequest get_hyperv_cpuid = 9;
+        EnableCapability enable_capability = 10;
     }
 }
 
@@ -435,6 +440,8 @@ message VcpuResponse  {
 
     message SetCpuid {}
 
+    message EnableCapability {}
+
     // This is zero on success, and a negative integer on failure.
     sint32 errno = 1;
     // The field present here is always the same as the one present in the corresponding
@@ -448,5 +455,6 @@ message VcpuResponse  {
         SetMsrs set_msrs = 7;
         SetCpuid set_cpuid = 8;
         CpuidResponse get_hyperv_cpuid = 9;
+        EnableCapability enable_capability = 10;
     }
 }