From 8bd6149dfc06533b34d1daab2a3f558ffa71cc3a Mon Sep 17 00:00:00 2001 From: Bowen Wang Date: Tue, 8 Oct 2024 21:20:47 +0800 Subject: [PATCH] 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 --- lib/include/openamp/virtio.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/include/openamp/virtio.h b/lib/include/openamp/virtio.h index 83788c8..5ab8b12 100644 --- a/lib/include/openamp/virtio.h +++ b/lib/include/openamp/virtio.h @@ -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.