All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/hyperv/vtl: Add noop for realmode pointers
@ 2023-05-06 14:08 Saurabh Sengar
  2023-05-06 14:10 ` Saurabh Singh Sengar
  0 siblings, 1 reply; 5+ messages in thread
From: Saurabh Sengar @ 2023-05-06 14:08 UTC (permalink / raw)
  To: stable; +Cc: ssengar

Assign the realmode pointers to noop, instead of NULL which fixes
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] 5+ messages in thread
* [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; 5+ 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] 5+ messages in thread

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

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.