KVM: nVMX: Add support for rdtscp
commitb3a2a9076d3149781c8622d6a98a51045ff946e4
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 23 Mar 2015 18:27:19 +0000 (23 19:27 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Fri, 27 Mar 2015 01:33:48 +0000 (26 22:33 -0300)
tree06274a7539be9a341986e4678edf6b90e702c672
parenta123374ff3c6850e1340b6da010bb43668d710e1
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>
arch/x86/include/uapi/asm/vmx.h
arch/x86/kvm/vmx.c