aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2018-04-05 18:09:51 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2018-04-09 16:36:39 +0200
commit2343be0d7ee8a6e02c2bf99d0243492085c8d399 (patch)
tree9b93823a3f0e4283a7082aec69932d49343d6d6a /include
parent37c51741892a89cf5710f5ac231091fb0a6352c7 (diff)
downloadqemu-2343be0d7ee8a6e02c2bf99d0243492085c8d399.zip
qemu-2343be0d7ee8a6e02c2bf99d0243492085c8d399.tar.gz
qemu-2343be0d7ee8a6e02c2bf99d0243492085c8d399.tar.bz2
scsi-disk: allow customizing the SCSI version
We would like to have different behavior for passthrough devices depending on the SCSI version they expose. To prepare for that, allow the user of emulated devices to specify the desired SCSI level, and adjust the emulation according to the property value. The next patch will set the level for scsi-block and scsi-generic devices. Based on a patch by Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com>. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/scsi/scsi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/scsi/scsi.h b/include/hw/scsi/scsi.h
index 7ecadda..e35137e 100644
--- a/include/hw/scsi/scsi.h
+++ b/include/hw/scsi/scsi.h
@@ -85,6 +85,8 @@ struct SCSIDevice
uint64_t max_lba;
uint64_t wwn;
uint64_t port_wwn;
+ int scsi_version;
+ int default_scsi_version;
};
extern const VMStateDescription vmstate_scsi_device;