@@ -2898,8 +2898,7 @@ static Property scsi_hd_properties[] = {
DEFAULT_MAX_UNMAP_SIZE),
DEFINE_PROP_UINT64("max_io_size", SCSIDiskState, max_io_size,
DEFAULT_MAX_IO_SIZE),
- DEFINE_PROP_UINT32("timeout", SCSIDevice, timeout,
- MAX_UINT),
+ DEFINE_PROP_UINT32("timeout", SCSIDevice, timeout, 0),
DEFINE_BLOCK_CHS_PROPERTIES(SCSIDiskState, qdev.conf),
DEFINE_PROP_END_OF_LIST(),
};
@@ -601,7 +601,7 @@ static SCSIRequest *scsi_new_request(SCSIDevice *d, uint32_t tag, uint32_t lun,
static Property scsi_generic_properties[] = {
DEFINE_PROP_DRIVE("drive", SCSIDevice, conf.blk),
- DEFINE_PROP_UINT32("timeout", SCSIDevice, timeout, MAX_UINT),
+ DEFINE_PROP_UINT32("timeout", SCSIDevice, timeout, 0),
DEFINE_PROP_END_OF_LIST(),
};
Instead of disabling command aborts by setting the command timeout to infinity we should be setting it to '0' per default, allowing the host to fall back to its default values. Signed-off-by: Hannes Reinecke <hare@suse.com> --- hw/scsi/scsi-disk.c | 3 +-- hw/scsi/scsi-generic.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-)