On 28-01-26, 23:57, Armelle Laine wrote:
The implicit idea here that the vsock layer would be in control of the sharing type (SHARE vs LEND) is not correct. We typically don't expect the user space to be in control of this, but instead be known and enforced by the heaps.
Interesting, I was assuming until now that this information will come from userspace and that's what I wrote at multiple places earlier too. Thanks for pointing this out.
In that case I think we need a different heap for LEND/etc, SHARE can be done with system heap. The special heap may end up not using dma-ops at all but direct invocation of virtio-msg-ffa helpers.