[PATCH hyperv-next v8 01/11] arm64: kvm, smccc: Introduce and use API for getting hypervisor UUID
Michael Kelley
mhklinux at outlook.com
Thu Apr 17 08:27:14 PDT 2025
From: Roman Kisel <romank at linux.microsoft.com> Sent: Monday, April 14, 2025 3:47 PM
>
> 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 at linux.microsoft.com>
> ---
> arch/arm64/kvm/hypercalls.c | 10 +++--
> drivers/firmware/smccc/kvm_guest.c | 10 +----
> drivers/firmware/smccc/smccc.c | 17 ++++++++
> include/linux/arm-smccc.h | 64 ++++++++++++++++++++++++++++--
> 4 files changed, 85 insertions(+), 16 deletions(-)
>
Reviewed-by: Michael Kelley <mhklinux at outlook.com>
More information about the linux-arm-kernel
mailing list