Skip to content

Commit cb6aeeb

Browse files
Saurabh Sengarliuw
authored andcommitted
x86/hyperv/vtl: Add noop for realmode pointers
Assign the realmode pointers to noop, instead of NULL to fix kernel panic. Signed-off-by: Saurabh Sengar <[email protected]> Reviewed-by: Michael Kelley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Liu <[email protected]>
1 parent ac9a786 commit cb6aeeb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/x86/hyperv/hv_vtl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ void __init hv_vtl_init_platform(void)
2020
{
2121
pr_info("Linux runs in Hyper-V Virtual Trust Level\n");
2222

23+
x86_platform.realmode_reserve = x86_init_noop;
24+
x86_platform.realmode_init = x86_init_noop;
2325
x86_init.irqs.pre_vector_init = x86_init_noop;
2426
x86_init.timers.timer_init = x86_init_noop;
2527

0 commit comments

Comments
 (0)