x86/cpuid: Handle leaf 0xb in guest_cpuid()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 17 Feb 2017 18:31:45 +0000 (18:31 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 13 Mar 2017 13:44:40 +0000 (13:44 +0000)
commit5853cd94d981fe83adb3173fa759284a06733dd4
tree511e286f6bc0497d9ec7cab722d5b44231ee4b1b
parent843f30e65ec00307b8b7305f95b2008bd4167998
x86/cpuid: Handle leaf 0xb in guest_cpuid()

Leaf 0xb is reserved by AMD, and uniformly hidden from guests by the toolstack
logic and hypervisor PV logic.  The previous dynamic logic filled in the
x2APIC ID for all HVM guests.

In practice, leaf 0xb is tightly linked with x2APIC, and x2APIC is offered to
guests on AMD hardware, as Xen's APIC emulation is x2APIC capable even if
hardware isn't.

Sensibly exposing the rest of the leaf requires further topology
infrastructure.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpuid.c