KVM: arm64: Trap FFA_VERSION host call in pKVM
The pKVM hypervisor initializes with FF-A version 1.0. The spec requires that no other FF-A calls to be issued before the version negotiation phase is complete. Split the hypervisor proxy initialization code in two parts so that we can move the later one after the host negotiates its version. Without trapping the call, the host drivers can negotiate a higher version number with TEE which can result in a different memory layout described during the memory sharing calls. Signed-off-by:Sebastian Ene <sebastianene@google.com> Reviewed-by:
Sudeep Holla <sudeep.holla@arm.com> Tested-by:
Sudeep Holla <sudeep.holla@arm.com> Acked-by:
Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20240613132035.1070360-2-sebastianene@google.comSigned-off-by:
Oliver Upton <oliver.upton@linux.dev>
Showing
Please register or sign in to comment