x86: fix cpuid reporting on PVH Dom0
authorRoger Pau Monné <roger.pau@citrix.com>
Mon, 4 Aug 2014 11:46:54 +0000 (13:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 4 Aug 2014 11:46:54 +0000 (13:46 +0200)
commit41220bb7d5946d3a693863d364a089e69b968ec7
tree73f79c49a8c12b6dbaf2e7e6073d653d542a12f3
parentfd1863847af15c3676348447755e1a1801f9d394
x86: fix cpuid reporting on PVH Dom0

dab11417d also caused some problems regarding HVM guest creation on
PVH Dom0, mainly the CR4 mask returned by hvm_cr4_guest_reserved_bits
changed from 0xfffffffffffff800 to 0xfffffffffffff893, which means HVM
guests created from a PVH Dom0 are unable to set VME, PVI, PSE or PGE
CR4 flags.

This is because cpuid on PVH guests mask PSE, PGE, PSE36 and VME
flags, so the white listing done in xc_cpuid_hvm_policy doesn't enable
those features, and the guest ends up with a very restrictive cpuid
policy.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/traps.c