Open CV-Bowen opened 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:
This pull request has been marked as a stale pull request because it has been open (more than) 45 days with no activity.
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: