Skip to content

Commit

Permalink
virtio.h: add new feature bit VIRTIO_F_ANY_LAYOUT
Browse files Browse the repository at this point in the history
Follow the virtio spec, this feature bit indicates that the device
accepts arbitrary descriptor layouts.

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
  • Loading branch information
CV-Bowen committed Oct 28, 2024
1 parent 71887e7 commit 9a215d0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/include/openamp/virtio.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ struct virtio_device_id {
*/
#define VIRTIO_F_NOTIFY_ON_EMPTY (1 << 24)

/*
* This feature indicates that the device accepts arbitrary
* descriptor layouts.
*/
#define VIRTIO_F_ANY_LAYOUT (1 << 27)

/*
* The guest should never negotiate this feature; it
* is used to detect faulty drivers.
Expand Down

0 comments on commit 9a215d0

Please sign in to comment.