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
This commit is contained in:
Christian Borntraeger 2014-09-26 18:44:40 +00:00
parent 0b5642095e
commit 3b8b96e924
2 changed files with 3 additions and 0 deletions

View 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

View 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