Skip to content

Commit f7c0f50

Browse files
andrea-parriKAGA-KOKO
authored andcommitted
x86/hyperv: Set pv_info.name to "Hyper-V"
Michael reported that the x86/hyperv initialization code prints the following dmesg when running in a VM on Hyper-V: [ 0.000738] Booting paravirtualized kernel on bare hardware Let the x86/hyperv initialization code set pv_info.name to "Hyper-V" so dmesg reports correctly: [ 0.000172] Booting paravirtualized kernel on Hyper-V [ tglx: Folded build fix provided by Yue ] Reported-by: Michael Kelley <[email protected]> Signed-off-by: Andrea Parri <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Wei Liu <[email protected]> Reviewed-by: Michael Kelley <[email protected]> Cc: YueHaibing <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 7a22e03 commit f7c0f50

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/x86/kernel/cpu/mshyperv.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,10 @@ static void __init ms_hyperv_init_platform(void)
216216
int hv_host_info_ecx;
217217
int hv_host_info_edx;
218218

219+
#ifdef CONFIG_PARAVIRT
220+
pv_info.name = "Hyper-V";
221+
#endif
222+
219223
/*
220224
* Extract the features and hints
221225
*/

0 commit comments

Comments
 (0)