]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/hyperv: Allow 15-bit APIC IDs for VTL platforms
authorSaurabh Sengar <ssengar@linux.microsoft.com>
Mon, 15 Jan 2024 17:57:40 +0000 (09:57 -0800)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:15 +0000 (18:19 -0400)
commit2984f26a4604dbd8d59171e0ae01daf4581e544f
tree2c84622fcc0a665421211ce68ffe120d308480b6
parenta9fcd576b7128951aaab9cf4895ed5762ca24f76
x86/hyperv: Allow 15-bit APIC IDs for VTL platforms

[ Upstream commit 0d63e4c0ebc2b5c329babde44fd61d3f08db814d ]

The current method for signaling the compatibility of a Hyper-V host
with MSIs featuring 15-bit APIC IDs relies on a synthetic cpuid leaf.
However, for higher VTLs, this leaf is not reported, due to the absence
of an IO-APIC.

As an alternative, assume that when running at a high VTL, the host
supports 15-bit APIC IDs. This assumption is safe, as Hyper-V does not
employ any architectural MSIs at higher VTLs

This unblocks startup of VTL2 environments with more than 256 CPUs.

Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Link: https://lore.kernel.org/r/1705341460-18394-1-git-send-email-ssengar@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <1705341460-18394-1-git-send-email-ssengar@linux.microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/hyperv/hv_vtl.c