[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 4/6] virtio-scsi: prepare virtio_scsi_handle_cmd for dataplane
From: |
Stefan Hajnoczi |
Subject: |
[PATCH v2 4/6] virtio-scsi: prepare virtio_scsi_handle_cmd for dataplane |
Date: |
Thu, 2 Dec 2021 15:34:00 +0000 |
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>
---
hw/scsi/virtio-scsi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c
index 51fd09522a..34a968ecfb 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;
--
2.33.1
- [PATCH v2 0/6] aio-posix: split poll check from ready handler, Stefan Hajnoczi, 2021/12/02
- [PATCH v2 1/6] aio-posix: split poll check from ready handler, Stefan Hajnoczi, 2021/12/02
- [PATCH v2 2/6] virtio: get rid of VirtIOHandleAIOOutput, Stefan Hajnoczi, 2021/12/02
- [PATCH v2 3/6] virtio-blk: drop unused virtio_blk_handle_vq() return value, Stefan Hajnoczi, 2021/12/02
- [PATCH v2 4/6] virtio-scsi: prepare virtio_scsi_handle_cmd for dataplane,
Stefan Hajnoczi <=
- [PATCH v2 6/6] virtio: unify dataplane and non-dataplane ->handle_output(), Stefan Hajnoczi, 2021/12/02
- [PATCH v2 5/6] virtio: use ->handle_output() instead of ->handle_aio_output(), Stefan Hajnoczi, 2021/12/02
- Re: [PATCH v2 0/6] aio-posix: split poll check from ready handler, Richard W.M. Jones, 2021/12/02