]> git.ipfire.org Git - thirdparty/linux.git/commit
arm64: hyperv: Use SMCCC to detect hypervisor presence
authorRoman Kisel <romank@linux.microsoft.com>
Mon, 28 Apr 2025 21:07:33 +0000 (14:07 -0700)
committerWei Liu <wei.liu@kernel.org>
Fri, 23 May 2025 16:30:55 +0000 (16:30 +0000)
commit36ebd328a57ac6138470ecaea2f9ec0864e3db0f
tree1c350d7e2e1ce19f4a7b57af547254ec57818edd
parent13423063c7cb7d1c34104a78cae85eb0281bae90
arm64: hyperv: Use SMCCC to detect hypervisor presence

The arm64 Hyper-V startup path relies on ACPI to detect
running under a Hyper-V compatible hypervisor. That
doesn't work on non-ACPI systems.

Hoist the ACPI detection logic into a separate function. Then
use the vendor-specific hypervisor service call (implemented
recently in Hyper-V) via SMCCC in the non-ACPI case.

Signed-off-by: Roman Kisel <romank@linux.microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Link: https://lore.kernel.org/r/20250428210742.435282-3-romank@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20250428210742.435282-3-romank@linux.microsoft.com>
arch/arm64/hyperv/mshyperv.c