mshyperv: Introduce hv_get_hypervisor_version function
authorNuno Das Neves <nunodasneves@linux.microsoft.com>
Thu, 7 Mar 2024 23:03:38 +0000 (15:03 -0800)
committerWei Liu <wei.liu@kernel.org>
Tue, 12 Mar 2024 05:17:50 +0000 (05:17 +0000)
commit410779d8d81fcfb45f839238dc6505af5357f5b8
tree6d47316c02a7329bda4f46ac49e6a34a5697942f
parent2b4b90e053a29057fb05ba81acce26bddce8d404
mshyperv: Introduce hv_get_hypervisor_version function

Introduce x86_64 and arm64 functions to get the hypervisor version
information and store it in a structure for simpler parsing.

Use the new function to get and parse the version at boot time. While at
it, move the printing code to hv_common_init() so it is not duplicated.

Signed-off-by: Nuno Das Neves <nunodasneves@linux.microsoft.com>
Acked-by: Wei Liu <wei.liu@kernel.org>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Link: https://lore.kernel.org/r/1709852618-29110-1-git-send-email-nunodasneves@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <1709852618-29110-1-git-send-email-nunodasneves@linux.microsoft.com>
arch/arm64/hyperv/mshyperv.c
arch/x86/kernel/cpu/mshyperv.c
drivers/hv/hv_common.c
include/asm-generic/hyperv-tlfs.h
include/asm-generic/mshyperv.h