summary refs log tree commit diff stats
path: root/hw/virtio/vhost-shadow-virtqueue.c
diff options
context:
space:
mode:
authorEugenio Pérez <eperezma@redhat.com>2022-10-20 17:52:51 +0200
committerJason Wang <jasowang@redhat.com>2022-10-28 13:28:52 +0800
commit396d512669dccea2bb982685870356ab71e956ed (patch)
tree610f33397252769eee60508faec641c19cbf3f25 /hw/virtio/vhost-shadow-virtqueue.c
parent22a6840ff282727df3e3c745d92d764c7081f49b (diff)
downloadfocaccia-qemu-396d512669dccea2bb982685870356ab71e956ed.tar.gz
focaccia-qemu-396d512669dccea2bb982685870356ab71e956ed.zip
vhost: Accept event idx flag
Enabling all the code path created before.

Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw/virtio/vhost-shadow-virtqueue.c')
-rw-r--r--hw/virtio/vhost-shadow-virtqueue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/virtio/vhost-shadow-virtqueue.c b/hw/virtio/vhost-shadow-virtqueue.c
index f306ebef72..5bd14cad96 100644
--- a/hw/virtio/vhost-shadow-virtqueue.c
+++ b/hw/virtio/vhost-shadow-virtqueue.c
@@ -33,6 +33,7 @@ bool vhost_svq_valid_features(uint64_t features, Error **errp)
          ++b) {
         switch (b) {
         case VIRTIO_F_ANY_LAYOUT:
+        case VIRTIO_RING_F_EVENT_IDX:
             continue;
 
         case VIRTIO_F_ACCESS_PLATFORM: