From 312073760fcd6806d9918f4526d804b504c6353a Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Sat, 2 Dec 2017 04:05:27 +0900 Subject: [PATCH] kvm: handle KVM_CREATE_VM ioctl command * kvm.c (kvm_ioctl): Handle KVM_CREATE_VM command. Signed-off-by: Masatake YAMATO --- kvm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kvm.c b/kvm.c index c6c5d9d1..b8c81ac5 100644 --- a/kvm.c +++ b/kvm.c @@ -37,6 +37,8 @@ int kvm_ioctl(struct tcb *const tcp, const unsigned int code, const kernel_ulong_t arg) { switch (code) { + case KVM_CREATE_VM: + return RVAL_DECODED | RVAL_FD; case KVM_RUN: case KVM_GET_VCPU_MMAP_SIZE: case KVM_GET_API_VERSION: