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>
hvm_featureset[i] &= hvm_featuremask[i];
/*
- * Xen can provide an APIC emulation to HVM guests even if the host's APIC
- * isn't enabled.
+ * Xen can provide an (x2)APIC emulation to HVM guests even if the host's
+ * (x2)APIC isn't enabled.
*/
__set_bit(X86_FEATURE_APIC, hvm_featureset);
+ __set_bit(X86_FEATURE_X2APIC, hvm_featureset);
/*
* On AMD, PV guests are entirely unable to use SYSENTER as Xen runs in