Files
android_kernel_xiaomi_sm8450/arch/x86/include/asm
David Woodhouse b8ab21e017 x86/apic: Fix x2apic enablement without interrupt remapping
[ Upstream commit 26573a97746c7a99f394f9d398ce91a8853b3b89 ]

Currently, Linux as a hypervisor guest will enable x2apic only if there are
no CPUs present at boot time with an APIC ID above 255.

Hotplugging a CPU later with a higher APIC ID would result in a CPU which
cannot be targeted by external interrupts.

Add a filter in x2apic_apic_id_valid() which can be used to prevent such
CPUs from coming online, and allow x2apic to be enabled even if they are
present at boot time.

Fixes: ce69a78450 ("x86/apic: Enable x2APIC without interrupt remapping under KVM")
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20201024213535.443185-2-dwmw2@infradead.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:52:59 +01:00
..
2020-08-03 07:48:39 +02:00
2020-06-09 09:39:13 -07:00
2019-07-22 12:00:51 +02:00
2020-01-23 10:41:20 -08:00
2018-12-03 10:49:13 +01:00
2020-05-07 16:06:20 +02:00
2020-08-20 11:18:36 +02:00
2020-07-27 14:29:23 -04:00
2020-09-04 15:09:29 +02:00
2020-09-16 16:52:35 +02:00
2018-08-15 13:44:10 -07:00
2019-04-16 12:26:18 +02:00
2019-04-22 11:42:59 +02:00
2020-09-16 16:52:28 +02:00
2020-09-16 16:52:35 +02:00
2018-03-20 10:01:57 +01:00
2020-06-02 10:59:12 -07:00
2019-04-10 09:53:31 +02:00
2020-03-21 16:03:25 +01:00
2020-01-14 12:20:58 +01:00
2020-03-23 18:45:14 +01:00
2020-01-14 12:20:58 +01:00