Skip to content

Commit d757e30

Browse files
Naman Jainsmb49
authored andcommitted
x86/hyperv/vtl: Stop kernel from probing VTL0 low memory
BugLink: https://bugs.launchpad.net/bugs/2110173 [ Upstream commit 59115e2 ] 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> Signed-off-by: Noah Wager <noah.wager@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
1 parent b05a07a commit d757e30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/hyperv/hv_vtl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ void __init hv_vtl_init_platform(void)
3030
x86_platform.realmode_init = x86_init_noop;
3131
x86_init.irqs.pre_vector_init = x86_init_noop;
3232
x86_init.timers.timer_init = x86_init_noop;
33+
x86_init.resources.probe_roms = x86_init_noop;
3334

3435
/* Avoid searching for BIOS MP tables */
3536
x86_init.mpparse.find_mptable = x86_init_noop;

0 commit comments

Comments
 (0)