kvm: handle KVM_CREATE_VM ioctl command

* kvm.c (kvm_ioctl): Handle KVM_CREATE_VM command.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
This commit is contained in:
Masatake YAMATO 2017-12-02 04:05:27 +09:00 committed by Dmitry V. Levin
parent 4f1c3c2ba4
commit 312073760f

2
kvm.c
View File

@ -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: