Linux kernel -stable discussions
 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; 2+ 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] 2+ messages in thread

* RE: [PATCH] x86/hyperv/vtl: Add noop for realmode pointers
  2023-05-06 14:08 [PATCH] x86/hyperv/vtl: Add noop for realmode pointers Saurabh Sengar
@ 2023-05-06 14:10 ` Saurabh Singh Sengar
  0 siblings, 0 replies; 2+ messages in thread
From: Saurabh Singh Sengar @ 2023-05-06 14:10 UTC (permalink / raw)
  To: Saurabh Sengar, stable@vger.kernel.org

Please ignore this patch, sent by mistake.

> -----Original Message-----
> From: Saurabh Sengar <ssengar@linux.microsoft.com>
> Sent: Saturday, May 6, 2023 7:39 PM
> To: stable@vger.kernel.org
> Cc: ssengar@linux.microsoft.com
> Subject: [PATCH] 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 <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	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-05-06 14:10 UTC | newest]

Thread overview: 2+ 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox