* kvm.c (kvm_ioctl_create_vcpu): New function. (kvm_ioctl) <KVM_CREATE_VCPU>: Use it.
Signed-off-by: Masatake YAMATO <yam...@redhat.com> --- kvm.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/kvm.c b/kvm.c index 7497788e..f725f9df 100644 --- a/kvm.c +++ b/kvm.c @@ -33,10 +33,21 @@ #ifdef HAVE_LINUX_KVM_H #include <linux/kvm.h> +static int +kvm_ioctl_create_vcpu(struct tcb *const tcp, const kernel_ulong_t arg) +{ + uint32_t cpuid = arg; + + tprintf(", %u", cpuid); + return RVAL_IOCTL_DECODED | RVAL_FD; +} + int kvm_ioctl(struct tcb *const tcp, const unsigned int code, const kernel_ulong_t arg) { switch (code) { + case KVM_CREATE_VCPU: + return kvm_ioctl_create_vcpu(tcp, arg); case KVM_CREATE_VM: return RVAL_DECODED | RVAL_FD; case KVM_RUN: -- 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