]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/hyperv/vtl: Stop kernel from probing VTL0 low memory
authorNaman Jain <namjain@linux.microsoft.com>
Thu, 16 Jan 2025 06:12:24 +0000 (06:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:37:38 +0000 (14:37 +0200)
commitc0863207c012a7e51b035eed17cd636ef43ce50d
treeae77dcda2dd4eb89f7afa630360504b502a284f1
parent0ada8048327557a51f230e47ec026669e8e68620
x86/hyperv/vtl: Stop kernel from probing VTL0 low memory

[ Upstream commit 59115e2e25f42924181055ed7cc1d123af7598b7 ]

For Linux, running in Hyper-V VTL (Virtual Trust Level), kernel in VTL2
tries to access VTL0 low memory in probe_roms. This memory is not
described in the e820 map. Initialize probe_roms call to no-ops
during boot for VTL2 kernel to avoid this. The issue got identified
in OpenVMM which detects invalid accesses initiated from kernel running
in VTL2.

Co-developed-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Signed-off-by: Naman Jain <namjain@linux.microsoft.com>
Tested-by: Roman Kisel <romank@linux.microsoft.com>
Reviewed-by: Roman Kisel <romank@linux.microsoft.com>
Link: https://lore.kernel.org/r/20250116061224.1701-1-namjain@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20250116061224.1701-1-namjain@linux.microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/hyperv/hv_vtl.c