[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <157139888658.29376.12730864004180074032.tip-bot2@tip-bot2>
Date: Fri, 18 Oct 2019 11:41:26 -0000
From: "tip-bot2 for Andrea Parri" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Michael Kelley <mikelley@...rosoft.com>,
Andrea Parri <parri.andrea@...il.com>,
Thomas Gleixner <tglx@...utronix.de>,
Wei Liu <wei.liu@...nel.org>,
YueHaibing <yuehaibing@...wei.com>,
Ingo Molnar <mingo@...nel.org>, Borislav Petkov <bp@...en8.de>,
linux-kernel@...r.kernel.org
Subject: [tip: x86/urgent] x86/hyperv: Set pv_info.name to "Hyper-V"
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 <parri.andrea@...il.com>
AuthorDate: Tue, 15 Oct 2019 12:35:02 +02:00
Committer: Thomas Gleixner <tglx@...utronix.de>
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 ]
Reported-by: Michael Kelley <mikelley@...rosoft.com>
Signed-off-by: Andrea Parri <parri.andrea@...il.com>
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Reviewed-by: Wei Liu <wei.liu@...nel.org>
Reviewed-by: Michael Kelley <mikelley@...rosoft.com>
Cc: YueHaibing <yuehaibing@...wei.com>
Link: https://lkml.kernel.org/r/20191015103502.13156-1-parri.andrea@gmail.com
---
arch/x86/kernel/cpu/mshyperv.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/x86/kernel/cpu/mshyperv.c b/arch/x86/kernel/cpu/mshyperv.c
index 267daad..c656d92 100644
--- a/arch/x86/kernel/cpu/mshyperv.c
+++ b/arch/x86/kernel/cpu/mshyperv.c
@@ -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
*/
Powered by blists - more mailing lists