scsi-disk: support emulated TO_DEV requests
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Feb 2012 09:32:55 +0000 (10:32 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 26 Jul 2012 15:44:09 +0000 (17:44 +0200)
commitaf6d510ddbef5e0be9ce40464c2bf46da58eacf2
tree346fa3ea0d6684461d5186a95a87409717ae1c50
parent314a329906d5238ab5993da95516fc5c40f58f54
scsi-disk: support emulated TO_DEV requests

This adds the implementation of write_data for the emulated
command case.  The first time through it asks for more data,
the second time it finishes the processing of the command.

MODE SELECT and MODE SELECT(10) can now be re-enabled, but they
will not do much.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi-disk.c