projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d93a240
)
vhost: Move vhost_svq_kick call to vhost_svq_add
author
Eugenio Pérez
<eperezma@redhat.com>
Wed, 20 Jul 2022 06:59:31 +0000
(08:59 +0200)
committer
Jason Wang
<jasowang@redhat.com>
Wed, 20 Jul 2022 08:58:08 +0000
(16:58 +0800)
The series needs to expose vhost_svq_add with full functionality,
including kick
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/virtio/vhost-shadow-virtqueue.c
patch
|
blob
|
history
diff --git
a/hw/virtio/vhost-shadow-virtqueue.c
b/hw/virtio/vhost-shadow-virtqueue.c
index 043a185b96cadaeb657d1b543833f0b118b47490..e272c3318ab7d0063d21a133b75e289a7babb4d5 100644
(file)
--- a/
hw/virtio/vhost-shadow-virtqueue.c
+++ b/
hw/virtio/vhost-shadow-virtqueue.c
@@
-246,6
+246,7
@@
static bool vhost_svq_add(VhostShadowVirtqueue *svq, VirtQueueElement *elem)
}
svq->ring_id_maps[qemu_head] = elem;
+ vhost_svq_kick(svq);
return true;
}
@@
-306,7
+307,6
@@
static void vhost_handle_guest_kick(VhostShadowVirtqueue *svq)
/* VQ is broken, just return and ignore any other kicks */
return;
}
- vhost_svq_kick(svq);
}
virtio_queue_set_notification(svq->vq, true);