Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virtio.h: add memory operation for virtio device #541

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Sep 14, 2024

  1. virtio.h: add memory operation for virtio device

    Buffer management 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 memmory own
    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 memory ops in virtio device to make different transport/device can
    implement their own share memory management.
    
    Signed-off-by: Bowen Wang <[email protected]>
    CV-Bowen committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    f58cce3 View commit details
    Browse the repository at this point in the history