]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
implement KVM_KVMCLOCK_CTRL. Interestingly, the kernel does not check
authorChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 26 Sep 2014 18:44:40 +0000 (18:44 +0000)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 26 Sep 2014 18:44:40 +0000 (18:44 +0000)
the parameter. QEMU does pass 0 nevertheless as parameter.

bugzilla:  [Bug 339424] Full support of KVM ioctl

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14569

coregrind/m_syswrap/syswrap-linux.c
include/vki/vki-linux.h

index 03e7aadc3a163520f1ea8de0f691e97fae78ad0c..92539475de07d05df98d95c501f3fb38700ec71a 100644 (file)
@@ -5430,6 +5430,7 @@ PRE(sys_ioctl)
    case VKI_KVM_S390_ENABLE_SIE:
    case VKI_KVM_CREATE_IRQCHIP:
    case VKI_KVM_S390_INITIAL_RESET:
+   case VKI_KVM_KVMCLOCK_CTRL:
 
    /* vhost without parameter */
    case VKI_VHOST_SET_OWNER:
@@ -9379,6 +9380,7 @@ POST(sys_ioctl)
    case VKI_KVM_CREATE_IRQCHIP:
    case VKI_KVM_RUN:
    case VKI_KVM_S390_INITIAL_RESET:
+   case VKI_KVM_KVMCLOCK_CTRL:
       break;
 
 #ifdef ENABLE_XEN
index d7196604dfc9a20a5c55e02006ee9a6a53290868..2d81e3f8ea76bd31d063c16256898f7aa11fe662 100644 (file)
@@ -3116,6 +3116,7 @@ struct vki_sockaddr_rc {
 #define VKI_KVM_RUN                   _VKI_IO(KVMIO,   0x80)
 #define VKI_KVM_S390_INITIAL_RESET    _VKI_IO(KVMIO,   0x97)
 #define VKI_KVM_NMI                   _VKI_IO(KVMIO,   0x9a)
+#define VKI_KVM_KVMCLOCK_CTRL         _VKI_IO(KVMIO,   0xad)
 
 //----------------------------------------------------------------------
 // From linux-2.6/include/linux/net_stamp.h