aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaurabh Sengar <[email protected]>2023-04-24 03:10:16 -0700
committerWei Liu <[email protected]>2023-05-08 16:46:43 +0000
commitcb6aeeb69af06b09e687fbef4da36a81c36b4994 (patch)
tree38ec5ba26b737ed5c5dab1ca2408663fb199acc2
parentac9a78681b921877518763ba0e89202254349d1b (diff)
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]>
-rw-r--r--arch/x86/hyperv/hv_vtl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/hyperv/hv_vtl.c b/arch/x86/hyperv/hv_vtl.c
index 1ba5d3b99b16..85d38b9f3586 100644
--- a/arch/x86/hyperv/hv_vtl.c
+++ b/arch/x86/hyperv/hv_vtl.c
@@ -20,6 +20,8 @@ void __init hv_vtl_init_platform(void)
{
pr_info("Linux runs in Hyper-V Virtual Trust Level\n");
+ x86_platform.realmode_reserve = x86_init_noop;
+ x86_platform.realmode_init = x86_init_noop;
x86_init.irqs.pre_vector_init = x86_init_noop;
x86_init.timers.timer_init = x86_init_noop;