OpenAMP / open-amp

The main OpenAMP library implementing RPMSG, Virtio, and Remoteproc for RTOS etc
https://www.openampproject.org/
Other
678 stars 278 forks source link

virtio: add alloc_buf/free_buf in virtio ops #541

Open CV-Bowen opened 7 months ago

CV-Bowen commented 7 months ago

Buffer managerment is different for different transport layer:

For MMIO transport layer, the buffer can direclty malloced from the gust os heap beacase the hypervisor can access all the memory owned by guest os.

For remoteproc transpor layer, the buffer should be malloced from the share memory region to make sure the remote core can access this buffer too.

So add alloc_buf/free_buf in virtio ops to make different transport can implement their own share memory management:

  1. add alloc_buf/free_buf api in virtio ops;
  2. support the alloc_buf/free_buf for remoteproc transport layer;
github-actions[bot] commented 5 months ago

This pull request has been marked as a stale pull request because it has been open (more than) 45 days with no activity.