Skip to content

Commit eeda29d

Browse files
kelleymhliuw
authored andcommitted
x86/hyperv: Output host build info as normal Windows version number
Hyper-V provides host version number information that is output in text form by a Linux guest when it boots. For whatever reason, the formatting has historically been non-standard. Change it to output in normal Windows version format for better readability. Similar code for ARM64 guests already outputs in normal Windows version format. Signed-off-by: Michael Kelley <mikelley@microsoft.com> Link: https://lore.kernel.org/r/1646767364-2234-1-git-send-email-mikelley@microsoft.com Signed-off-by: Wei Liu <wei.liu@kernel.org>
1 parent 1d72867 commit eeda29d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arch/x86/kernel/cpu/mshyperv.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,10 @@ static void __init ms_hyperv_init_platform(void)
309309
hv_host_info_ecx = cpuid_ecx(HYPERV_CPUID_VERSION);
310310
hv_host_info_edx = cpuid_edx(HYPERV_CPUID_VERSION);
311311

312-
pr_info("Hyper-V Host Build:%d-%d.%d-%d-%d.%d\n",
313-
hv_host_info_eax, hv_host_info_ebx >> 16,
314-
hv_host_info_ebx & 0xFFFF, hv_host_info_ecx,
315-
hv_host_info_edx >> 24, hv_host_info_edx & 0xFFFFFF);
312+
pr_info("Hyper-V: Host Build %d.%d.%d.%d-%d-%d\n",
313+
hv_host_info_ebx >> 16, hv_host_info_ebx & 0xFFFF,
314+
hv_host_info_eax, hv_host_info_edx & 0xFFFFFF,
315+
hv_host_info_ecx, hv_host_info_edx >> 24);
316316
}
317317

318318
if (ms_hyperv.features & HV_ACCESS_FREQUENCY_MSRS &&

0 commit comments

Comments
 (0)