scsi-disk: allow customizing the SCSI version
commit2343be0d7ee8a6e02c2bf99d0243492085c8d399
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 5 Apr 2018 16:09:51 +0000 (5 18:09 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 9 Apr 2018 14:36:39 +0000 (9 16:36 +0200)
tree9b93823a3f0e4283a7082aec69932d49343d6d6a
parent37c51741892a89cf5710f5ac231091fb0a6352c7
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>
hw/scsi/scsi-disk.c
hw/scsi/scsi-generic.c
include/hw/scsi/scsi.h