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:
parent
4f1c3c2ba4
commit
312073760f
2
kvm.c
2
kvm.c
@ -37,6 +37,8 @@ int
|
|||||||
kvm_ioctl(struct tcb *const tcp, const unsigned int code, const kernel_ulong_t arg)
|
kvm_ioctl(struct tcb *const tcp, const unsigned int code, const kernel_ulong_t arg)
|
||||||
{
|
{
|
||||||
switch (code) {
|
switch (code) {
|
||||||
|
case KVM_CREATE_VM:
|
||||||
|
return RVAL_DECODED | RVAL_FD;
|
||||||
case KVM_RUN:
|
case KVM_RUN:
|
||||||
case KVM_GET_VCPU_MMAP_SIZE:
|
case KVM_GET_VCPU_MMAP_SIZE:
|
||||||
case KVM_GET_API_VERSION:
|
case KVM_GET_API_VERSION:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user