x86/vvmx: Fix the use of RDTSCP when it is intercepted at L0
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 2 Oct 2019 17:44:42 +0000 (18:44 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 23 Oct 2019 15:43:48 +0000 (16:43 +0100)
commit9257c218e56e9902b78662e5852d69329b9cc204
tree329a597849f2ccdd288a7cea317c0119206fb5bb
parentb7fab13d4d5730d937b5b1aa9ad109488277dfb4
x86/vvmx: Fix the use of RDTSCP when it is intercepted at L0

Linux has started using RDTSCP as of v5.1.  This has highlighted a bug in Xen,
where virtual vmexit simply gives up.

  (XEN) d1v1 Unhandled nested vmexit: reason 51
  (XEN) domain_crash called from vvmx.c:2671
  (XEN) Domain 1 (vcpu#1) crashed on cpu#2:

Handle RDTSCP in the virtual vmexit hander in the same was as RDTSC
intercepts.

Reported-by: Sarah Newman <srn@prgmr.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Tested-by: Chris Brannon <cmb@prgmr.com>
Reviewed-by: Wei Liu <wl@xen.org>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/hvm/vmx/vvmx.c