Hi,
Just a general question on the subject: Do we want to unmap the area from user space or should we never map it ? I am mentioning this because side effects could create issues if something is mapped in user space application but in fact not accessible or removed (barriers required, be careful with possible side effects of speculation, cache flush required etc...). Might be a better solution if the application is just getting an address but can never access it ?
On 29 Jan 2026, at 08:18, Viresh Kumar viresh.kumar@linaro.org wrote:
On 28-01-26, 22:50, Armelle Laine wrote:
We also need to support "SEND_SECURE" when the FFA handle already exists.
Yeah, with our own heap this shouldn't be a problem.
Shouldn't the heap rather be virtio-msg-ffa aware? wouldn't the heap also be responsible to invoke "FFA_BUS_MSG_AREA_SHARE" with both the FFA handle and the tag (for LEND or SEND_SECURE cases)?
Right, that's what I implemented earlier. Virtio-msg-ffa aware.
Yes having a dedicated heap for that sounds like a better solution as passing the information through and handling the unmapping would require a new concept. But as Achin said maybe that is not a need just for our use case but more general in the future so we might want to investigate a generic lend solution.
Cheers Bertrand
-- viresh
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.