|
|
29b115 |
From 3a944d8cd3d35b2398ff68d9ed8ea51d27dfab3c Mon Sep 17 00:00:00 2001
|
|
|
29b115 |
From: =?UTF-8?q?Eugenio=20P=C3=A9rez?= <eperezma@redhat.com>
|
|
|
29b115 |
Date: Thu, 21 Jul 2022 15:38:55 +0200
|
|
|
29b115 |
Subject: [PATCH 12/32] vhost: Move vhost_svq_kick call to vhost_svq_add
|
|
|
29b115 |
MIME-Version: 1.0
|
|
|
29b115 |
Content-Type: text/plain; charset=UTF-8
|
|
|
29b115 |
Content-Transfer-Encoding: 8bit
|
|
|
29b115 |
|
|
|
29b115 |
RH-Author: Eugenio Pérez <eperezma@redhat.com>
|
|
|
29b115 |
RH-MergeRequest: 108: Net Control Virtqueue shadow Support
|
|
|
29b115 |
RH-Commit: [12/27] 29a7e1fb4992c4beca1e9a3379bb4c8a0f567459 (eperezmartin/qemu-kvm)
|
|
|
29b115 |
RH-Bugzilla: 1939363
|
|
|
29b115 |
RH-Acked-by: Stefano Garzarella <sgarzare@redhat.com>
|
|
|
29b115 |
RH-Acked-by: Cindy Lu <lulu@redhat.com>
|
|
|
29b115 |
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
|
|
|
29b115 |
|
|
|
29b115 |
Bugzilla: https://bugzilla.redhat.com/1939363
|
|
|
29b115 |
|
|
|
29b115 |
Upstream Status: git://git.qemu.org/qemu.git
|
|
|
29b115 |
|
|
|
29b115 |
commit 98b5adef8493a2bfad6655cfee84299e88bedbf7
|
|
|
29b115 |
Author: Eugenio Pérez <eperezma@redhat.com>
|
|
|
29b115 |
Date: Wed Jul 20 08:59:31 2022 +0200
|
|
|
29b115 |
|
|
|
29b115 |
vhost: Move vhost_svq_kick call to vhost_svq_add
|
|
|
29b115 |
|
|
|
29b115 |
The series needs to expose vhost_svq_add with full functionality,
|
|
|
29b115 |
including kick
|
|
|
29b115 |
|
|
|
29b115 |
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
|
|
|
29b115 |
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
29b115 |
Signed-off-by: Jason Wang <jasowang@redhat.com>
|
|
|
29b115 |
|
|
|
29b115 |
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
|
|
|
29b115 |
---
|
|
|
29b115 |
hw/virtio/vhost-shadow-virtqueue.c | 2 +-
|
|
|
29b115 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
29b115 |
|
|
|
29b115 |
diff --git a/hw/virtio/vhost-shadow-virtqueue.c b/hw/virtio/vhost-shadow-virtqueue.c
|
|
|
29b115 |
index 05cd39d1eb..e3fc3c2658 100644
|
|
|
29b115 |
--- a/hw/virtio/vhost-shadow-virtqueue.c
|
|
|
29b115 |
+++ b/hw/virtio/vhost-shadow-virtqueue.c
|
|
|
29b115 |
@@ -246,6 +246,7 @@ static bool vhost_svq_add(VhostShadowVirtqueue *svq, VirtQueueElement *elem)
|
|
|
29b115 |
}
|
|
|
29b115 |
|
|
|
29b115 |
svq->ring_id_maps[qemu_head] = elem;
|
|
|
29b115 |
+ vhost_svq_kick(svq);
|
|
|
29b115 |
return true;
|
|
|
29b115 |
}
|
|
|
29b115 |
|
|
|
29b115 |
@@ -306,7 +307,6 @@ static void vhost_handle_guest_kick(VhostShadowVirtqueue *svq)
|
|
|
29b115 |
/* VQ is broken, just return and ignore any other kicks */
|
|
|
29b115 |
return;
|
|
|
29b115 |
}
|
|
|
29b115 |
- vhost_svq_kick(svq);
|
|
|
29b115 |
}
|
|
|
29b115 |
|
|
|
29b115 |
virtio_queue_set_notification(svq->vq, true);
|
|
|
29b115 |
--
|
|
|
29b115 |
2.31.1
|
|
|
29b115 |
|