firmware/smccc: Call arch-specific hook on discovering KVM services
authorMarc Zyngier <maz@kernel.org>
Fri, 30 Aug 2024 13:01:44 +0000 (14:01 +0100)
committerWill Deacon <will@kernel.org>
Fri, 30 Aug 2024 15:30:41 +0000 (16:30 +0100)
commit0ba5b4ba61781f1eca843d9e5d499da329a8a275
treec913b25d5880a85dc23d7b3d750832f5a4367335
parent7c626ce4bae1ac14f60076d00eafe71af30450ba
firmware/smccc: Call arch-specific hook on discovering KVM services

arm64 will soon require its own callback to initialise services
that are only available on this architecture. Introduce a hook
that can be overloaded by the architecture.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240830130150.8568-2-will@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm/include/asm/hypervisor.h
arch/arm64/include/asm/hypervisor.h
drivers/firmware/smccc/kvm_guest.c