scsi-disk: separate read_data/write_data implementation for emulate_reqops
commit314a329906d5238ab5993da95516fc5c40f58f54
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Feb 2012 09:26:21 +0000 (8 10:26 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 26 Jul 2012 15:44:09 +0000 (26 17:44 +0200)
treeaffb9fabef8e72be55f6d65bce5c5907c9791b97
parentb08d0ea0446aa91f373c9df4254ba3bc4ee84098
scsi-disk: separate read_data/write_data implementation for emulate_reqops

The previous patch only separated the send_command callback.
Use different implementations also for read_data and write_data.
The latter is still unreachable, so it aborts for now.

read_data passes the data buffer that was prepared and completes
the command.

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