Fam Zheng f399ea092e scsi-disk: Fix assertion failure on WRITE SAME
The last portion of an unaligned WRITE SAME command could fail the
assertion in bdrv_aligned_pwritev:

    assert(!qiov || bytes == qiov->size);

Because we updated data->iov.iov_len right above this if block, but
data->qiov still has the old size.

Reinitialize the qiov to make them equal and keep block layer happy.

Cc: qemu-stable@nongnu.org
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <1438159512-3871-2-git-send-email-famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit a56537a127)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2015-10-17 18:03:09 -05:00
2015-07-08 13:11:01 +02:00
2015-07-07 14:54:55 +02:00
2015-07-09 15:20:40 +02:00
2015-08-01 09:39:50 +02:00
…
…
2015-06-12 06:42:34 +02:00
2015-07-14 21:50:13 -04:00
…
…
…
…
2015-07-27 22:44:47 +03:00
2015-04-30 16:05:48 +03:00
…
2015-06-12 13:42:17 +01:00
2015-07-14 17:15:23 +02:00
2015-07-27 22:44:47 +03:00
2015-07-27 22:44:47 +03:00
2015-07-24 13:57:45 +02:00
2015-07-24 13:57:45 +02:00
2015-07-24 13:57:45 +02:00
…
…
2015-05-11 08:59:07 -04:00
2015-05-22 15:58:22 -04:00
…
2015-06-11 10:13:28 +01:00
2015-09-22 16:53:29 -05:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
S
Description
A QEMU emulator for legacy Apple devices
Readme GPL-2.0
557 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 82.9%
C++ 6.4%
Python 3.3%
Dylan 2.9%
Shell 1.6%
Other 2.7%