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 some user-friendly apis #622

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Oct 28, 2024

  1. virtio.h: add new feature bit VIRTIO_F_ANY_LAYOUT

    Follow the virtio spec, this feature bit indicates that the device
    accepts arbitrary descriptor layouts.
    
    Signed-off-by: Bowen Wang <[email protected]>
    CV-Bowen committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    9a215d0 View commit details
    Browse the repository at this point in the history
  2. virtio.h: add new api virtio_has_feature()

    virtio_has_feature() can be easily used to heck if the virtio device
    support a specific feature.
    
    And assgin feature to vdev->feature for virtio device role when get
    features, so the virtio device side can use virtio_has_featrue() to
    check weather the virtio device support a feature.
    
    Signed-off-by: Bowen Wang <[email protected]>
    CV-Bowen committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    d4c0152 View commit details
    Browse the repository at this point in the history