x86/hvm: always expose x2APIC feature in max HVM cpuid policy
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 24 Dec 2019 10:18:10 +0000 (11:18 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 16 Jan 2020 16:00:24 +0000 (16:00 +0000)
commit1b4c0be707c524a28f020c584f541c667e6dc78f
treef5196e52cf5eb7a1e3a7eb8c7b8b60c54e949c96
parentb663b30c21466b919046cfc0187f086df19e0368
x86/hvm: always expose x2APIC feature in max HVM cpuid policy

On hardware without x2APIC support Xen emulated local APIC will
provide such mode, and hence the feature should be set in the maximum
HVM cpuid policy.

Not exposing it in the maximum policy results in HVM domains not
getting such feature exposed unless it's also supported by the
underlying hardware.

This was regressed by c/s 3e0c8272f20 which caused x2APIC not to be enabled
unilaterally for HVM guests.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/cpuid.c