The bug is obvious here, other places in this function used
"cpufeat_mask" correctly.
Fixed:
b648feff8ea2 ("xen/x86: Improvements to in-hypervisor cpuid sanity checks")
Signed-off-by: Fam Zheng <famzheng@amazon.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
{
/* Fast-forward MSR_APIC_BASE.EN. */
if ( vlapic_hw_disabled(vcpu_vlapic(v)) )
- res->d &= ~cpufeat_bit(X86_FEATURE_APIC);
+ res->d &= ~cpufeat_mask(X86_FEATURE_APIC);
/*
* PSE36 is not supported in shadow mode. This bit should be