projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac9a786
)
x86/hyperv/vtl: Add noop for realmode pointers
author
Saurabh Sengar
<ssengar@linux.microsoft.com>
Mon, 24 Apr 2023 10:10:16 +0000
(
03:10
-0700)
committer
Wei Liu
<wei.liu@kernel.org>
Mon, 8 May 2023 16:46:43 +0000
(16:46 +0000)
Assign the realmode pointers to noop, instead of NULL to fix kernel panic.
Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link:
https://lore.kernel.org/r/1682331016-22561-1-git-send-email-ssengar@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
arch/x86/hyperv/hv_vtl.c
patch
|
blob
|
history
diff --git
a/arch/x86/hyperv/hv_vtl.c
b/arch/x86/hyperv/hv_vtl.c
index 1ba5d3b99b1630bc373fe2f44cd9ffdae926b873..85d38b9f35861b65eafe3b4323bfae2f99e5fab3 100644
(file)
--- 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;