* kvm.c (kvm_ioctl): Handle KVM_CREATE_VM. (kvm_ioctl_create_vm): New function.
Signed-off-by: Masatake YAMATO <yam...@redhat.com> --- kvm.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/kvm.c b/kvm.c index 9fa7e248..fdcf3466 100644 --- a/kvm.c +++ b/kvm.c @@ -33,10 +33,23 @@ #ifdef HAVE_LINUX_KVM_H #include <linux/kvm.h> +static int +kvm_ioctl_create_vm(struct tcb *const tcp, const kernel_ulong_t arg) +{ +#ifdef X86_64 + return RVAL_IOCTL_DECODED | RVAL_FD; +#else + return RVAL_DECODED | RVAL_FD; +#endif +} + int kvm_ioctl(struct tcb *const tcp, const unsigned int code, const kernel_ulong_t arg) { switch (code) { + case KVM_CREATE_VM: + return kvm_ioctl_create_vm(tcp, arg); + /* Commands not taking any arguments. */ case KVM_RUN: case KVM_GET_VCPU_MMAP_SIZE: -- 2.13.6 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Strace-devel mailing list Strace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/strace-devel