]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm64: kvm, smccc: Introduce and use API for getting hypervisor UUID
authorRoman Kisel <romank@linux.microsoft.com>
Mon, 28 Apr 2025 21:07:32 +0000 (14:07 -0700)
committerWei Liu <wei.liu@kernel.org>
Fri, 23 May 2025 16:30:55 +0000 (16:30 +0000)
commit13423063c7cb7d1c34104a78cae85eb0281bae90
tree7bff72ae9d6a10634987069fd33da4ffbb7de675
parenta9c0b33ef2306327dd2db02c6274107065ff9307
arm64: kvm, smccc: Introduce and use API for getting hypervisor UUID

The KVM/arm64 uses SMCCC to detect hypervisor presence. That code is
private, and it follows the SMCCC specification. Other existing and
emerging hypervisor guest implementations can and should use that
standard approach as well.

Factor out a common infrastructure that the guests can use, update KVM
to employ the new API. The central notion of the SMCCC method is the
UUID of the hypervisor, and the new API follows that.

No functional changes. Validated with a KVM/arm64 guest.

Signed-off-by: Roman Kisel <romank@linux.microsoft.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Link: https://lore.kernel.org/r/20250428210742.435282-2-romank@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20250428210742.435282-2-romank@linux.microsoft.com>
arch/arm64/kvm/hypercalls.c
drivers/firmware/smccc/kvm_guest.c
drivers/firmware/smccc/smccc.c
include/linux/arm-smccc.h