diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2021-12-07 13:23:34 +0000 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2022-01-12 17:09:39 +0000 |
commit | f34e8d8b8d48d73f36a67b6d5e492ef9784b5012 (patch) | |
tree | f2309bcfe5e8c0fe49a3fc672ad02e8f0796bd6c /hw | |
parent | 186b9691730ca4d3d59fa135d7d24467a3254c9a (diff) | |
download | qemu-f34e8d8b8d48d73f36a67b6d5e492ef9784b5012.zip qemu-f34e8d8b8d48d73f36a67b6d5e492ef9784b5012.tar.gz qemu-f34e8d8b8d48d73f36a67b6d5e492ef9784b5012.tar.bz2 |
virtio-scsi: prepare virtio_scsi_handle_cmd for dataplane
Prepare virtio_scsi_handle_cmd() to be used by both dataplane and
non-dataplane by making the condition for starting ioeventfd more
specific. This way it won't trigger when dataplane has already been
started.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-id: 20211207132336.36627-5-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/scsi/virtio-scsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c index 51fd095..34a968e 100644 --- a/hw/scsi/virtio-scsi.c +++ b/hw/scsi/virtio-scsi.c @@ -720,7 +720,7 @@ static void virtio_scsi_handle_cmd(VirtIODevice *vdev, VirtQueue *vq) /* use non-QOM casts in the data path */ VirtIOSCSI *s = (VirtIOSCSI *)vdev; - if (s->ctx) { + if (s->ctx && !s->dataplane_started) { virtio_device_start_ioeventfd(vdev); if (!s->dataplane_fenced) { return; |