x86/hvm: Don't expose CPUID time leaf when not using PVRDTSCP
authorPaul Durrant <paul.durrant@citrix.com>
Fri, 8 Jul 2011 07:31:10 +0000 (08:31 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Fri, 8 Jul 2011 07:31:10 +0000 (08:31 +0100)
commit80ecb40362365ba77e68fc609de8bd3b7208ae19
treeb1b02f858fd7c7fe60e43bc45ef7678af6997c44
parentf128d21688fc1dbd19b17517d6f94a23994df4fb
x86/hvm: Don't expose CPUID time leaf when not using PVRDTSCP

Some versions of Oracle's Solaris PV drivers make a check that the
maximal Xen hypervisor CPUID leaf is <= base leaf + 2 and refuse to
work if this is not the case.  The addition of the time leaf makes the
maximal leaf == base leaf + 3 so this patch introduces a workaround
that obscures the time leaf unless PVRDTSCP is in operation.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
xen/arch/x86/traps.c