lib: virtio: 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 <wangbowen6@xiaomi.com>
This commit is contained in:
Bowen Wang
2024-10-08 21:20:47 +08:00
committed by Arnaud Pouliquen
parent 3122cec8aa
commit 8bd6149dfc

View File

@@ -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.