Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b226fe95 authored by Talons Lee's avatar Talons Lee Committed by Greg Kroah-Hartman
Browse files

always clear the X2APIC_ENABLE bit for PV guest



[ Upstream commit 5268c8f39e0efef81af2aaed160272d9eb507beb ]

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 <xin.li@citrix.com>
Reviewed-by: default avatarJuergen Gross <jgross@suse.com>
Signed-off-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 88c55679
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -900,9 +900,6 @@ static u64 xen_read_msr_safe(unsigned int msr, int *err)
	val = native_read_msr_safe(msr, err);
	switch (msr) {
	case MSR_IA32_APICBASE:
#ifdef CONFIG_X86_X2APIC
		if (!(cpuid_ecx(1) & (1 << (X86_FEATURE_X2APIC & 31))))
#endif
		val &= ~X2APIC_ENABLE;
		break;
	}