Skip to contentSkip to conversation

x86/hyperv: Set pv_info.name to "Hyper-V"

PATCH Applied Andrea Parri 5 participants 7 messages Oct 15, 2019 – Oct 28, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 x86/hyperv: Set pv_info.name to "Hyper-V"

Michael reported that the x86/hyperv initialization code printed 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"; with this addition, the dmesg read:

  [    0.000172] Booting paravirtualized kernel on Hyper-V

---
Changes since v1 ([1]):
- move the setting of pv_info.name to ms_hyperv_init_platform() (Wei Liu)

[1] https://lkml.kernel.org/r/[email protected]

 arch/x86/kernel/cpu/mshyperv.c | 2 ++
 1 file changed, 2 insertions(+)
arch/x86/kernel/cpu/mshyperv.c +2 -0
index 267daad8c0360..e7f0776e2a811 100644
@@ -216,6 +216,8 @@ static void __init ms_hyperv_init_platform(void)
 	int hv_host_info_ecx;
 	int hv_host_info_edx;
 
+	pv_info.name = "Hyper-V";
+
 	/*
 	 * Extract the features and hints
 	 */
Signature · 1 line
2.23.0
maintainer Reviewed-by on v2 1/1
#1 lore raw
Quoted 6 lines · Andrea Parri

Michael reported that the x86/hyperv initialization code printed the following dmesg when running in a VM on Hyper-V:

  [    0.000738] Booting paravirtualized kernel on bare hardware
Quoted 7 lines

Let the x86/hyperv initialization code set pv_info.name to "Hyper-V"; with this addition, the dmesg read:

  [    0.000172] Booting paravirtualized kernel on Hyper-V
Reviewed-by on v2 1/1
#2 lore raw
In reply to Andrea Parri

From: Andrea Parri <[email protected]> Sent: Tuesday, October 15, 2019 3:35 AM

Quoted 6 lines

Michael reported that the x86/hyperv initialization code printed the following dmesg when running in a VM on Hyper-V:

  [    0.000738] Booting paravirtualized kernel on bare hardware
Quoted 7 lines

Let the x86/hyperv initialization code set pv_info.name to "Hyper-V"; with this addition, the dmesg read:

  [    0.000172] Booting paravirtualized kernel on Hyper-V
#3 lore raw
Quoted 10 lines · Michael Kelley

From: Andrea Parri <[email protected]> Sent: Tuesday, October 15, 2019 3:35 AM

Quoted 9 lines

Michael reported that the x86/hyperv initialization code printed 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"; with this addition, the dmesg read:

Quoted 6 lines
Quoted 4 lines
  [    0.000172] Booting paravirtualized kernel on Hyper-V

Thomas, will you be taking this? Would you rather have me deal with the hyperv bits under arch/x86/?

Signature · 2 lines
Thanks,
Sasha
#4 lore raw

From: Sasha Levin <[email protected]> Sent: Monday, October 28, 2019 9:28 AM

Quoted 13 lines · Michael Kelley
Quoted 12 lines

From: Andrea Parri <[email protected]> Sent: Tuesday, October 15, 2019 3:35 AM

Quoted 11 lines

Michael reported that the x86/hyperv initialization code printed 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"; with this addition, the dmesg read:

  [    0.000172] Booting paravirtualized kernel on Hyper-V
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

Thomas, will you be taking this? Would you rather have me deal with the hyperv bits under arch/x86/?

Thomas has already pulled this one. It's in Linus' tree.

Michael

merge bot Applied
#5 lore raw
In reply to Andrea Parri
The following commit has been merged into the x86/urgent branch of tip:

The following commit has been merged into the x86/urgent branch of tip:

Commit-ID:     628270ef628af6712ee99771b583feb667a7f1bc
Gitweb:        https://git.kernel.org/tip/628270ef628af6712ee99771b583feb667a7f1bc
Author:        Andrea Parri <[email protected]>
AuthorDate:    Tue, 15 Oct 2019 12:35:02 +02:00
Committer:     Thomas Gleixner <[email protected]>
CommitterDate: Tue, 15 Oct 2019 15:18:17 +02:00

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
---
 arch/x86/kernel/cpu/mshyperv.c | 2 ++
 1 file changed, 2 insertions(+)
arch/x86/kernel/cpu/mshyperv.c +2 -0
index 267daad..e7f0776 100644
@@ -216,6 +216,8 @@ static void __init ms_hyperv_init_platform(void)
 	int hv_host_info_ecx;
 	int hv_host_info_edx;
 
+	pv_info.name = "Hyper-V";
+
 	/*
 	 * Extract the features and hints
 	 */
merge bot Applied
#6 lore raw
In reply to Andrea Parri
The following commit has been merged into the x86/urgent branch of tip:

The following commit has been merged into the x86/urgent branch of tip:

Commit-ID:     f7c0f50f1857c1cf013466fcea4dc98d116bf456
Gitweb:        https://git.kernel.org/tip/f7c0f50f1857c1cf013466fcea4dc98d116bf456
Author:        Andrea Parri <[email protected]>
AuthorDate:    Tue, 15 Oct 2019 12:35:02 +02:00
Committer:     Thomas Gleixner <[email protected]>
CommitterDate: Fri, 18 Oct 2019 13:33:38 +02:00

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 ]

---
 arch/x86/kernel/cpu/mshyperv.c | 4 ++++
 1 file changed, 4 insertions(+)
arch/x86/kernel/cpu/mshyperv.c +4 -0
index 267daad..c656d92 100644
@@ -216,6 +216,10 @@ static void __init ms_hyperv_init_platform(void)
 	int hv_host_info_ecx;
 	int hv_host_info_edx;
 
+#ifdef CONFIG_PARAVIRT
+	pv_info.name = "Hyper-V";
+#endif
+
 	/*
 	 * Extract the features and hints
 	 */