Paolo Bonzini 55783a5521 virtio-scsi: work around bug in old BIOSes
Old BIOSes left some padding by mistake after the req_size/resp_size.
New QEMU does not like it, thinking it is a bidirectional command.

As a workaround, we can check if the ANY_LAYOUT bit is set; if not, we
always consider the first buffer as the virtio-scsi request/response,
because, back when QEMU did not support ANY_LAYOUT, it expected the
payload to start at the second element of the iovec.

This can show up during migration.

Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2014-11-07 16:09:57 +01:00
..
2014-11-07 13:31:19 +01:00
2014-10-31 11:29:01 +01:00
2014-10-31 11:29:00 +01:00
2014-09-30 13:30:50 +02:00
2013-09-12 08:46:21 +02:00
2014-09-23 15:40:51 +02:00