Skip to content
Commit c9c01262 authored by Sebastian Ene's avatar Sebastian Ene Committed by Oliver Upton
Browse files

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: default avatarSebastian Ene <sebastianene@google.com>
Reviewed-by: Sudeep Holla's avatarSudeep Holla <sudeep.holla@arm.com>
Tested-by: Sudeep Holla's avatarSudeep Holla <sudeep.holla@arm.com>
Acked-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240613132035.1070360-2-sebastianene@google.com


Signed-off-by: default avatarOliver Upton <oliver.upton@linux.dev>
parent 83a7eefe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment