x86/pv: Expose RDTSCP to PV guests
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 19 Feb 2018 13:35:58 +0000 (13:35 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 18 Dec 2018 17:13:51 +0000 (17:13 +0000)
commit068118aaba842af21f0b1025925e3a2e04808c1f
tree3789ff530209dc05ee7ead4ba303c82870175de8
parent5f5a7a6d3669fb94fa15daf563e5dc54cc9dbece
x86/pv: Expose RDTSCP to PV guests

The final remnanat of PVRDTSCP is that we would emulate RDTSCP even on
hardware which lacked the instruction.  RDTSCP is available on almost all
64-bit x86 hardware.

Remove this emulation, drop the TSC_MODE_PVRDTSCP constant, and allow RDTSCP
in a PV guest's CPUID policy.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/pv/emul-inv-op.c
xen/include/asm-x86/time.h
xen/include/public/arch-x86/cpufeatureset.h