From 9a215d046eb8e71da51e6715cd2ad5557f1c4a33 Mon Sep 17 00:00:00 2001 From: Bowen Wang Date: Tue, 8 Oct 2024 21:20:47 +0800 Subject: [PATCH] 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 --- 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 278d2da78..091ba744d 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.