firmware: smccc: Support both smc and hvc conduits for getting hyp UUID
authorAnirudh Rayabharam (Microsoft) <anirudh@anirudhrb.com>
Wed, 21 May 2025 09:40:48 +0000 (09:40 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Wed, 11 Jun 2025 12:55:41 +0000 (13:55 +0100)
commit1733432638f323d80ec3d6ba411794cc20e2465f
tree2246872d0074b043877a08b064bce45e993c2cdf
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
firmware: smccc: Support both smc and hvc conduits for getting hyp UUID

When Linux is running as the root partition under Microsoft Hypervisor
(MSHV) a.k.a Hyper-V, smc is used as the conduit for smc calls.

Extend arm_smccc_hypervisor_has_uuid() to support this usecase. Use
arm_smccc_1_1_invoke to retrieve and use the appropriate conduit instead
of supporting only hvc.

Boot tested on MSHV guest, MSHV root & KVM guest.

Signed-off-by: Anirudh Rayabharam (Microsoft) <anirudh@anirudhrb.com>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Tested-by: Roman Kisel <romank@linux.microsoft.com>
Reviewed-by: Roman Kisel <romank@linux.microsoft.com>
Message-Id: <20250521094049.960056-1-anirudh@anirudhrb.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/smccc/smccc.c