From: Christian Borntraeger Date: Fri, 26 Sep 2014 18:44:40 +0000 (+0000) Subject: implement KVM_KVMCLOCK_CTRL. Interestingly, the kernel does not check X-Git-Tag: svn/VALGRIND_3_11_0~965 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b8b96e924f064bd89a5ad2e54d9e9e9748cd63a;p=thirdparty%2Fvalgrind.git implement KVM_KVMCLOCK_CTRL. Interestingly, the kernel does not check 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 --- diff --git a/coregrind/m_syswrap/syswrap-linux.c b/coregrind/m_syswrap/syswrap-linux.c index 03e7aadc3a..92539475de 100644 --- a/coregrind/m_syswrap/syswrap-linux.c +++ b/coregrind/m_syswrap/syswrap-linux.c @@ -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 diff --git a/include/vki/vki-linux.h b/include/vki/vki-linux.h index d7196604df..2d81e3f8ea 100644 --- a/include/vki/vki-linux.h +++ b/include/vki/vki-linux.h @@ -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