diff options
| author | Paolo Bonzini | 2016-07-04 14:06:37 +0200 |
|---|---|---|
| committer | Peter Maydell | 2016-07-04 14:15:22 +0200 |
| commit | cace7b801d49430522840fa13e9ac2bdc2dcf941 (patch) | |
| tree | 8b2215b5de4780b52c83cd6b1e582dab9d876a9c /scripts | |
| parent | ssi: change ssi_slave_init to be a realize ops (diff) | |
| download | qemu-cace7b801d49430522840fa13e9ac2bdc2dcf941.tar.gz qemu-cace7b801d49430522840fa13e9ac2bdc2dcf941.tar.xz qemu-cace7b801d49430522840fa13e9ac2bdc2dcf941.zip | |
m25p80: do not put iovec on the stack
When doing a read-modify-write cycle, QEMU uses the iovec after returning
from blk_aio_pwritev. m25p80 puts the iovec on the stack of blk_aio_pwritev's
caller, which causes trouble in this case. This has been a problem
since commit 243e6f6 ("m25p80: Switch to byte-based block access",
2016-05-12) started doing writes at a smaller granularity than 512 bytes.
In principle however it could have broken before when using -drive
if=mtd,cache=none on a disk with 4K native sectors.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-id: 1467138270-32481-3-git-send-email-clg@kaod.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
