KVM: nVMX: Add support for rdtscp
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 23 Mar 2015 18:27:19 +0000 (19:27 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Fri, 27 Mar 2015 01:33:48 +0000 (22:33 -0300)
If the guest CPU is supposed to support rdtscp and the host has rdtscp
enabled in the secondary execution controls, we can also expose this
feature to L1. Just extend nested_vmx_exit_handled to properly route
EXIT_REASON_RDTSCP.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/include/uapi/asm/vmx.h
arch/x86/kvm/vmx.c

index c5f1a1d..1fe9218 100644 (file)
@@ -67,6 +67,7 @@
 #define EXIT_REASON_EPT_VIOLATION       48
 #define EXIT_REASON_EPT_MISCONFIG       49
 #define EXIT_REASON_INVEPT              50
+#define EXIT_REASON_RDTSCP              51
 #define EXIT_REASON_PREEMPTION_TIMER    52
 #define EXIT_REASON_INVVPID             53
 #define EXIT_REASON_WBINVD              54
Simple merge