]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/hyperv: Reserve 3 interrupt vectors used exclusively by MSHV
authorMukesh Rathor <mrathor@linux.microsoft.com>
Tue, 17 Feb 2026 23:11:58 +0000 (15:11 -0800)
committerWei Liu <wei.liu@kernel.org>
Wed, 18 Feb 2026 23:18:30 +0000 (23:18 +0000)
commitfe9f15983c4823a8473e289b4a302946a4864ef5
treedd109804f9377007b55179e6a42e14feefca9f05
parentf8e6343b7a89c7c649db5a9e309ba7aa20401813
x86/hyperv: Reserve 3 interrupt vectors used exclusively by MSHV

MSVC compiler, used to compile the Microsoft Hypervisor, currently
has an assert intrinsic that uses interrupt vector 0x29 to create an
exception. This will cause hypervisor to then crash and collect core. As
such, if this interrupt number is assigned to a device by Linux and the
device generates it, hypervisor will crash. There are two other such
vectors hard coded in the hypervisor, 0x2C and 0x2D for debug purposes.

Fortunately, the three vectors are part of the kernel driver space and
that makes it feasible to reserve them early so they are not assigned
later.

Signed-off-by: Mukesh Rathor <mrathor@linux.microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
arch/x86/kernel/cpu/mshyperv.c