This series extracts some pending patches I had lying around
that refactor scsi-disk to be more table-driven and enable support
for emulated requests where data flows _to_ the SCSI device.  This
is then used to support MODE SELECT and in particular toggling the
write cache.

Paolo

Paolo Bonzini (8):
  scsi-disk: make discard asynchronous
  scsi-disk: move all non-DMA commands to scsi_disk_emulate_command
  scsi-disk: split scsi-disk reqops
  scsi-disk: separate read_data/write_data implementation for emulate_reqops
  scsi-disk: support emulated TO_DEV requests
  scsi-disk: fix changeable values for MODE_PAGE_R_W_ERROR
  scsi-disk: parse MODE SELECT commands and parameters
  scsi-disk: support toggling the write cache

 hw/scsi-bus.c  |   10 ++
 hw/scsi-disk.c |  550 +++++++++++++++++++++++++++++++++++++++-----------------
 hw/scsi.h      |    4 +
 3 files changed, 402 insertions(+), 162 deletions(-)

-- 
1.7.10.4


Reply via email to