[PATCH 2/8] kvm: handle KVM_RUN and KVM_GET_VCPU_MMAP_SIZE, and KVM_GET_API_VERSION ioctl commands
Masatake YAMATO
yamato at redhat.com
Fri Dec 1 19:05:26 UTC 2017
* kvm.c (kvm_ioctl): Handle KVM_RUN, KVM_GET_VCPU_MMAP_SIZE
and KVM_GET_API_VERSION.
Change in v2:
* Remove a pointless comment.
Suggested by ldv.
Signed-off-by: Masatake YAMATO <yamato at redhat.com>
---
kvm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/kvm.c b/kvm.c
index ebd6be7b..24a37ace 100644
--- a/kvm.c
+++ b/kvm.c
@@ -37,6 +37,9 @@ int
kvm_ioctl(struct tcb *const tcp, const unsigned int code, const kernel_ulong_t arg)
{
switch (code) {
+ case KVM_RUN:
+ case KVM_GET_VCPU_MMAP_SIZE:
+ case KVM_GET_API_VERSION:
default:
return RVAL_DECODED;
}
--
2.13.6
More information about the Strace-devel
mailing list