summaryrefslogtreecommitdiffstats
path: root/linux-user
diff options
context:
space:
mode:
authorPaolo Bonzini2015-04-02 19:50:44 +0200
committerStefan Hajnoczi2015-04-08 11:39:18 +0200
commit2a6cdd6d35158bc7a6aacd92b5b0302f28ec480e (patch)
tree51b158464e2013fd972bc2401d74ca13d4281743 /linux-user
parentqcow2: Fix header update with overridden backing file (diff)
downloadqemu-2a6cdd6d35158bc7a6aacd92b5b0302f28ec480e.tar.gz
qemu-2a6cdd6d35158bc7a6aacd92b5b0302f28ec480e.tar.xz
qemu-2a6cdd6d35158bc7a6aacd92b5b0302f28ec480e.zip
virtio-blk: correctly dirty guest memory
After qemu_iovec_destroy, the QEMUIOVector's size is zeroed and the zero size ultimately is used to compute virtqueue_push's len argument. Therefore, reads from virtio-blk devices did not migrate their results correctly. (Writes were okay). Save the size in virtio_blk_handle_request, and use it when the request is completed. Based on a patch by Wen Congyang. Signed-off-by: Wen Congyang <wency@cn.fujitsu.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Tested-by: Li Zhijian <lizhijian@cn.fujitsu.com> Message-id: 1427997044-392-1-git-send-email-pbonzini@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'linux-user')
0 files changed, 0 insertions, 0 deletions