* kvm.c (kvm_ioctl): Handle KVM_CREATE_VM.

Change in v2:
* Don't make a redundant separated function.
  Suggested by ldv.

Signed-off-by: Masatake YAMATO <yam...@redhat.com>
---
 kvm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kvm.c b/kvm.c
index 24a37ace..7497788e 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:
-- 
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

Reply via email to