Hello,
I was able to successfully test memory sharing over Vsock, implemented over a virtio message FFA transport. The memory is shared, as an FD, from Linux userspace (via a FFA specific DMA HEAP) and is received in OP-TEE as a buffer, which prints the string written by Linux.
Steps to reproduce:
- Jens shared an OP-TEE based setup few days back [1]. Reproduce it first. - Migrate to my branches for the following repositories within that:
- build, optee_os, optee_test - Path to my repos: git@github.com:vireshk/ - branch: vsock/shmem
- Migrate to my linux repo: git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/linux.git virtio/msg - Repeat the same test from Jens's setup: "xtest 2005" - The firmware side will print:
Hello from shared memory via FD!
This string was written by the Linux userspace in the memory provided by FFA DMA HEAP.
Thanks.
Hi,
Great work Jens & Viresh!
I have added a wiki page that captures Jens' and Viresh's instructions.
https://linaro.atlassian.net/wiki/spaces/HVAC/pages/30372528129/2025-11+OPTE...
Bill
On 10/31/25 7:02 AM, Viresh Kumar wrote:
Hello,
I was able to successfully test memory sharing over Vsock, implemented over a virtio message FFA transport. The memory is shared, as an FD, from Linux userspace (via a FFA specific DMA HEAP) and is received in OP-TEE as a buffer, which prints the string written by Linux.
Steps to reproduce:
Jens shared an OP-TEE based setup few days back [1]. Reproduce it first.
Migrate to my branches for the following repositories within that:
- build, optee_os, optee_test
- Path to my repos: git@github.com:vireshk/
- branch: vsock/shmem
Migrate to my linux repo: git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/linux.git virtio/msg
Repeat the same test from Jens's setup: "xtest 2005"
The firmware side will print:
Hello from shared memory via FD!
This string was written by the Linux userspace in the memory provided by FFA DMA HEAP.
Thanks.
-- viresh
[1] https://linaro.atlassian.net/browse/LEDGE-725 _______________________________________________ Virtio-msg mailing list -- virtio-msg@lists.linaro.org To unsubscribe send an email to virtio-msg-leave@lists.linaro.org