]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Drivers: hv: Provide arch-neutral implementation of get_vtl()
authorRoman Kisel <romank@linux.microsoft.com>
Mon, 28 Apr 2025 21:07:35 +0000 (14:07 -0700)
committerWei Liu <wei.liu@kernel.org>
Fri, 23 May 2025 16:30:55 +0000 (16:30 +0000)
commite7e6902fbd19b25630cf6a258c44cb385f16b1c8
tree11b0391b5662b648dc3e1802f1b07e1af3f963cd
parentf41ceff1748612b9e1538becc13dc2f1617d9d14
Drivers: hv: Provide arch-neutral implementation of get_vtl()

To run in the VTL mode, Hyper-V drivers have to know what
VTL the system boots in, and the arm64/hyperv code does not
have the means to compute that.

Refactor the code to hoist the function that detects VTL,
make it arch-neutral to be able to employ it to get the VTL
on arm64.

Signed-off-by: Roman Kisel <romank@linux.microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Reviewed-by: Tianyu Lan <tiala@microsoft.com>
Link: https://lore.kernel.org/r/20250428210742.435282-5-romank@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20250428210742.435282-5-romank@linux.microsoft.com>
arch/x86/hyperv/hv_init.c
drivers/hv/hv_common.c
include/asm-generic/mshyperv.h
include/hyperv/hvgdk_mini.h