Commit 5268c8f3 authored by Talons Lee's avatar Talons Lee Committed by Boris Ostrovsky
Browse files

always clear the X2APIC_ENABLE bit for PV guest

Commit e657fccb

 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: default avatarTalons Lee <>
Reviewed-by: default avatarJuergen Gross <>
Signed-off-by: default avatarBoris Ostrovsky <>
parent 9f51c05d
......@@ -898,10 +898,7 @@ static u64 xen_read_msr_safe(unsigned int msr, int *err)
val = native_read_msr_safe(msr, err);
switch (msr) {
#ifdef CONFIG_X86_X2APIC
if (!(cpuid_ecx(1) & (1 << (X86_FEATURE_X2APIC & 31))))
val &= ~X2APIC_ENABLE;
val &= ~X2APIC_ENABLE;
return val;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment