x86/hyperv/vtl: Add noop for realmode pointers
Subsystems (3)
PATCH 1/1 x86/hyperv/vtl: Add noop for realmode pointers
Assign the realmode pointers to noop, instead of NULL which fixes panic.
Signed-off-by Saurabh Sengar <[email protected]>
--- arch/x86/hyperv/hv_vtl.c | 2 ++ 1 file changed, 2 insertions(+)
arch/x86/hyperv/hv_vtl.c +2 -0
@@ -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;
Signature · 1 line
2.34.1
Please ignore this patch, sent by mistake.
Quoted 28 lines
-----Original Message-----
From: Saurabh Sengar <[email protected]>
Sent: Saturday, May 6, 2023 7:39 PM
To: [email protected]
Cc: [email protected]
Subject: [PATCH] x86/hyperv/vtl: Add noop for realmode pointersAssign the realmode pointers to noop, instead of NULL which fixes panic.
Signed-off-by Saurabh Sengar <[email protected]>--- arch/x86/hyperv/hv_vtl.c | 2 ++ 1 file changed, 2 insertions(+)arch/x86/hyperv/hv_vtl.c index renamed from arch/x86/hyperv/hv_vtl.c +0
-0
1ba5d3b99b16..85d38b9f3586100644arch/x86/hyperv/hv_vtl.c +2
-1@@ -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; --2.34.1