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.