]> git.itanic.dy.fi Git - linux-stable/commit
KVM: arm64: FFA: Remove access of endpoint memory access descriptor array
authorSudeep Holla <sudeep.holla@arm.com>
Thu, 5 Oct 2023 14:45:07 +0000 (15:45 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Sun, 8 Oct 2023 20:18:19 +0000 (21:18 +0100)
commit76cf932c95b9e7c07b065b5c71e56957e2826ae2
treeb79e6187b284cf9091cf798005c5b330ac078b0a
parentc9b21ef0d0a87695d7bfeee9a04b89760b49ccf5
KVM: arm64: FFA: Remove access of endpoint memory access descriptor array

FF-A v1.1 removes the fixed location of endpoint memory access descriptor
array within the memory transaction descriptor structure. In preparation
to remove the ep_mem_access member from the ffa_mem_region structure,
provide the accessor to fetch the offset and use the same in FF-A proxy
implementation.

The accessor take the FF-A version as the argument from which the memory
access descriptor format can be determined. v1.0 uses the old format while
v1.1 onwards use the new format specified in the v1.1 specification.

Cc: Oliver Upton <oliver.upton@linux.dev>
Cc: Will Deacon <will@kernel.org>
Cc: Quentin Perret <qperret@google.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20231005-ffa_v1-1_notif-v4-14-cddd3237809c@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
arch/arm64/kvm/hyp/nvhe/ffa.c
include/linux/arm_ffa.h