diff mbox series

[v3,12/14] fixup! virtio-scsi: add iothread-vq-mapping parameter

Message ID 20250311130741.1047903-13-stefanha@redhat.com (mailing list archive)
State New
Headers show
Series virtio-scsi: add iothread-vq-mapping parameter | expand

Commit Message

Stefan Hajnoczi March 11, 2025, 1:07 p.m. UTC
---
 hw/scsi/virtio-scsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c
index 6274fb044c..9f61eb97db 100644
--- a/hw/scsi/virtio-scsi.c
+++ b/hw/scsi/virtio-scsi.c
@@ -1268,7 +1268,7 @@  static void virtio_scsi_hotunplug(HotplugHandler *hotplug_dev, DeviceState *dev,
 
     qdev_simple_device_unplug_cb(hotplug_dev, dev, errp);
 
-    if (s->vq_aio_context[0] != qemu_get_aio_context()) {
+    if (s->vq_aio_context[VIRTIO_SCSI_VQ_NUM_FIXED] != qemu_get_aio_context()) {
         /* If other users keep the BlockBackend in the iothread, that's ok */
         blk_set_aio_context(sd->conf.blk, qemu_get_aio_context(), NULL);
     }