[PATCH 2/3] KVM: arm64: Map the hypervisor FF-A buffers on ffa init
Sebastian Ene
sebastianene at google.com
Thu Feb 27 09:58:22 PST 2025
On Thu, Feb 27, 2025 at 09:58:28AM +0000, Sudeep Holla wrote:
> On Wed, Feb 26, 2025 at 09:48:52PM +0000, Sebastian Ene wrote:
> > Map the hypervisor's buffers irrespective to the host and return
> > a linux error code from the FF-A error code on failure. Remove
> > the unmap ff-a buffers calls from the hypervisor as it will
> > never be called and move the definition of the
> > ffa_to_linux_error map in the header where it should belong to.
> > Prevent the host from using FF-A if the hypervisor could not
> > map its own buffers with Trustzone.
> >
> > Signed-off-by: Sebastian Ene <sebastianene at google.com>
> > ---
> > arch/arm64/kvm/hyp/nvhe/ffa.c | 46 ++++++++++++-------------------
> > drivers/firmware/arm_ffa/driver.c | 24 ----------------
> > include/linux/arm_ffa.h | 24 ++++++++++++++++
Hi Sudeep,
>
> Can you post the code movement from driver to the header as separate patch
> so that I can take it separately to avoid conflicts with the other changes
> I have. It could be just fine but I see no reason as why it can't be a
> separate change or why it needs to be bundled here.
Yes, let me do that and I will spin up a v2.
Thanks,
Sebastian
>
> --
> Regards,
> Sudeep
More information about the linux-arm-kernel
mailing list