]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Drivers: hv: Resolve ambiguity in hypervisor version log
authorStanislav Kinsburskii <skinsburskii@linux.microsoft.com>
Wed, 8 Oct 2025 22:43:29 +0000 (22:43 +0000)
committerWei Liu <wei.liu@kernel.org>
Sat, 15 Nov 2025 06:18:17 +0000 (06:18 +0000)
Update the log message in hv_common_init to explicitly state that the
reported version is for the Microsoft Hypervisor, not the host OS.

Previously, this message was accurate for guests running on Windows
hosts, where the host and hypervisor versions matched. With support for
Linux hosts running the Hyper-V hypervisor, the host OS and hypervisor
versions may differ.

This change avoids confusion by making it clear that the version refers to
the Microsoft Hypervisor regardless of the host operating system.

Signed-off-by: Stanislav Kinsburskii <skinsburskii@linux.microsoft.com>
Reviewed-by: Nuno Das Neves <nunodasneves@linux.microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/hv_common.c

index 4b44da7f23b27ef2c5de3f1e9c94ffdb544c0d99..5f5047f122a9f941a89587d05d66649da69132f9 100644 (file)
@@ -315,9 +315,9 @@ int __init hv_common_init(void)
        int i;
        union hv_hypervisor_version_info version;
 
-       /* Get information about the Hyper-V host version */
+       /* Get information about the Microsoft Hypervisor version */
        if (!hv_get_hypervisor_version(&version))
-               pr_info("Hyper-V: Host Build %d.%d.%d.%d-%d-%d\n",
+               pr_info("Hyper-V: Hypervisor Build %d.%d.%d.%d-%d-%d\n",
                        version.major_version, version.minor_version,
                        version.build_number, version.service_number,
                        version.service_pack, version.service_branch);