Skip to content

Commit 5268c8f

Browse files
TalonsLeeBoris Ostrovsky
authored andcommitted
always clear the X2APIC_ENABLE bit for PV guest
Commit e657fcc clears cpu capability bit instead of using fake cpuid value, the EXTD should always be off for PV guest without depending on cpuid value. So remove the cpuid check in xen_read_msr_safe() to always clear the X2APIC_ENABLE bit. Signed-off-by: Talons Lee <xin.li@citrix.com> Reviewed-by: Juergen Gross <jgross@suse.com> Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
1 parent 9f51c05 commit 5268c8f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

arch/x86/xen/enlighten_pv.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -898,10 +898,7 @@ static u64 xen_read_msr_safe(unsigned int msr, int *err)
898898
val = native_read_msr_safe(msr, err);
899899
switch (msr) {
900900
case MSR_IA32_APICBASE:
901-
#ifdef CONFIG_X86_X2APIC
902-
if (!(cpuid_ecx(1) & (1 << (X86_FEATURE_X2APIC & 31))))
903-
#endif
904-
val &= ~X2APIC_ENABLE;
901+
val &= ~X2APIC_ENABLE;
905902
break;
906903
}
907904
return val;

0 commit comments

Comments
 (0)