linux-hyperv.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86/hyperv/vtl: Add noop for realmode pointers
@ 2023-04-24 10:10 Saurabh Sengar
  2023-05-01 16:57 ` Michael Kelley (LINUX)
  0 siblings, 1 reply; 3+ messages in thread
From: Saurabh Sengar @ 2023-04-24 10:10 UTC (permalink / raw)
  To: tglx, mingo, bp, dave.hansen, x86, hpa, kys, haiyangz, wei.liu,
	decui, mikelley, ssengar, linux-kernel, linux-hyperv

Assign the realmode pointers to noop, instead of NULL to fix kernel panic.

Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
---
 arch/x86/hyperv/hv_vtl.c | 2 ++
 1 file changed, 2 insertions(+)

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;
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-08 16:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-24 10:10 [PATCH] x86/hyperv/vtl: Add noop for realmode pointers Saurabh Sengar
2023-05-01 16:57 ` Michael Kelley (LINUX)
2023-05-08 16:47   ` Wei Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).