summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/uapi/asm/vmx.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2015-03-23 19:27:19 +0100
committerMarcelo Tosatti <mtosatti@redhat.com>2015-03-26 22:33:48 -0300
commitb3a2a9076d3149781c8622d6a98a51045ff946e4 (patch)
tree06274a7539be9a341986e4678edf6b90e702c672 /arch/x86/include/uapi/asm/vmx.h
parenta123374ff3c6850e1340b6da010bb43668d710e1 (diff)
downloadlinux-0-day-b3a2a9076d3149781c8622d6a98a51045ff946e4.tar.gz
linux-0-day-b3a2a9076d3149781c8622d6a98a51045ff946e4.tar.xz
KVM: nVMX: Add support for rdtscp
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>
Diffstat (limited to 'arch/x86/include/uapi/asm/vmx.h')
-rw-r--r--arch/x86/include/uapi/asm/vmx.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/uapi/asm/vmx.h b/arch/x86/include/uapi/asm/vmx.h
index c5f1a1deb91a9..1fe92181ee9ef 100644
--- a/arch/x86/include/uapi/asm/vmx.h
+++ b/arch/x86/include/uapi/asm/vmx.h
@@ -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