]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: hyperv: Initialize the Virtual Trust Level field
authorRoman Kisel <romank@linux.microsoft.com>
Mon, 28 Apr 2025 21:07:36 +0000 (14:07 -0700)
committerWei Liu <wei.liu@kernel.org>
Fri, 23 May 2025 16:30:55 +0000 (16:30 +0000)
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>

arch/arm64/hyperv/mshyperv.c

index 21458b6338aa351f5e8b3e9dbe3bc456d424ea43..43f422a7ef34259f43a5597f26e48e5450f4e347 100644 (file)
@@ -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();