summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Kisel <romank@linux.microsoft.com>2025-04-28 14:07:36 -0700
committerWei Liu <wei.liu@kernel.org>2025-05-23 16:30:55 +0000
commit1f5538a8e2fd3602cd507897c16ee647360a0423 (patch)
tree2d31964cecfae6f66a4679700c305319eafb54d6
parente7e6902fbd19b25630cf6a258c44cb385f16b1c8 (diff)
arm64: hyperv: Initialize the Virtual Trust Level field
Various parts of the hyperv code need to know what VTL the kernel runs at, most notably VMBus needs that to establish communication with the host. Initialize the Virtual Trust Level field to enable booting in the Virtual Trust Level. Signed-off-by: Roman Kisel <romank@linux.microsoft.com> Reviewed-by: Michael Kelley <mhklinux@outlook.com> Link: https://lore.kernel.org/r/20250428210742.435282-6-romank@linux.microsoft.com Signed-off-by: Wei Liu <wei.liu@kernel.org> Message-ID: <20250428210742.435282-6-romank@linux.microsoft.com>
-rw-r--r--arch/arm64/hyperv/mshyperv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/hyperv/mshyperv.c b/arch/arm64/hyperv/mshyperv.c
index 21458b6338aa..43f422a7ef34 100644
--- a/arch/arm64/hyperv/mshyperv.c
+++ b/arch/arm64/hyperv/mshyperv.c
@@ -117,6 +117,7 @@ static int __init hyperv_init(void)
if (ms_hyperv.priv_high & HV_ACCESS_PARTITION_ID)
hv_get_partition_id();
+ ms_hyperv.vtl = get_vtl();
ms_hyperv_late_init();