aboutsummaryrefslogtreecommitdiff
path: root/include/hw/scsi
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2019-04-26 19:29:47 +0200
committerKevin Wolf <kwolf@redhat.com>2019-06-04 15:22:22 +0200
commit4f71fb436a6fbec7a7b2360cdba741deeb24be67 (patch)
treeaf9c5c804a62cc93c2b5871d9467665fbcc5b1ef /include/hw/scsi
parent307a5f60ebe0506a5b90f323fdcabb4333405484 (diff)
downloadqemu-4f71fb436a6fbec7a7b2360cdba741deeb24be67.zip
qemu-4f71fb436a6fbec7a7b2360cdba741deeb24be67.tar.gz
qemu-4f71fb436a6fbec7a7b2360cdba741deeb24be67.tar.bz2
scsi-disk: Use qdev_prop_drive_iothread
This makes use of qdev_prop_drive_iothread for scsi-disk so that the disk can be attached to a node that is already in the target AioContext. We need to check that the HBA actually supports iothreads, otherwise scsi-disk must make sure that the node is already in the main AioContext. This changes the error message for conflicting iothread settings. Previously, virtio-scsi produced the error message, now it comes from blk_set_aio_context(). Update a test case accordingly. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/hw/scsi')
-rw-r--r--include/hw/scsi/scsi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/scsi/scsi.h b/include/hw/scsi/scsi.h
index acef25f..426566a 100644
--- a/include/hw/scsi/scsi.h
+++ b/include/hw/scsi/scsi.h
@@ -88,6 +88,7 @@ struct SCSIDevice
int scsi_version;
int default_scsi_version;
bool needs_vpd_bl_emulation;
+ bool hba_supports_iothread;
};
extern const VMStateDescription vmstate_scsi_device;