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-09-29 10:20:05 +02:00
2014-08-15 19:12:48 +04:00
2014-11-04 23:26:12 +01:00
2014-09-02 22:38:16 +04:00
2014-11-04 15:56:26 +00:00
2014-11-03 09:48:41 +00:00
2014-10-22 16:39:49 +01:00
2014-10-31 17:02:22 +01:00
2014-11-04 23:26:13 +01:00
2014-10-24 12:19:11 +01:00
2014-11-04 23:26:15 +01:00
2014-10-28 11:38:18 +01:00