virtio-scsi: prepare sense data handling for any_layout
commit489c7901a6e92d65afab333d498b3790b73f7153
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 10 Jun 2014 14:58:19 +0000 (10 16:58 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 18 Jun 2014 06:47:11 +0000 (18 08:47 +0200)
treedfdaa11d98e18de5e4c7827be01e42b55f092522
parent57fbae6e2cbbea037196a9ad67487c3fe78217f0
virtio-scsi: prepare sense data handling for any_layout

Retrieve sense and copy it to guest memory, to prepare for when we will use
qemu_iovec_from_buf.

Swap response and request, since we'll use the tail of VirtIOSCSIReq
for the CDB.

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