always clear the X2APIC_ENABLE bit for PV guest
authorTalons Lee <xin.li@citrix.com>
Mon, 10 Dec 2018 10:03:00 +0000 (18:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2019 09:08:55 +0000 (10:08 +0100)
commitc818b5b47181abb613206ca160f78ed3c889fcd1
tree9df1493bf26fef76f1698271963886cc5c580613
parent73aa8292cabad4f09ccd8cecf8adc9fd4abf2f8e
always clear the X2APIC_ENABLE bit for PV guest

[ Upstream commit 5268c8f39e0efef81af2aaed160272d9eb507beb ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/xen/enlighten_pv.c