diff options
author | Marc Zyngier <maz@kernel.org> | 2024-08-30 14:01:44 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2024-08-30 16:30:41 +0100 |
commit | 0ba5b4ba61781f1eca843d9e5d499da329a8a275 (patch) | |
tree | c913b25d5880a85dc23d7b3d750832f5a4367335 /drivers/firmware | |
parent | 7c626ce4bae1ac14f60076d00eafe71af30450ba (diff) |
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>
Diffstat (limited to 'drivers/firmware')
-rw-r--r-- | drivers/firmware/smccc/kvm_guest.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/firmware/smccc/kvm_guest.c b/drivers/firmware/smccc/kvm_guest.c index 89a68e7eeaa6..f3319be20b36 100644 --- a/drivers/firmware/smccc/kvm_guest.c +++ b/drivers/firmware/smccc/kvm_guest.c @@ -39,6 +39,8 @@ void __init kvm_init_hyp_services(void) pr_info("hypervisor services detected (0x%08lx 0x%08lx 0x%08lx 0x%08lx)\n", res.a3, res.a2, res.a1, res.a0); + + kvm_arch_init_hyp_services(); } bool kvm_arm_hyp_service_available(u32 func_id) |