Paolo Bonzini 2a6cdd6d35 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>
2015-04-08 10:39:18 +01:00
..
2015-03-19 11:11:55 +03:00
2015-04-04 09:45:59 +03:00
2015-03-19 11:11:55 +03:00
2015-03-19 11:11:55 +03:00
2015-04-01 10:06:38 +02:00
2015-03-27 15:48:11 -04:00
2015-03-12 15:49:57 +01:00
2015-03-19 11:11:55 +03:00
2015-03-27 10:23:50 +00:00
2015-03-30 09:25:17 +02:00
2015-03-19 11:11:55 +03:00
2015-03-10 17:07:28 +01:00
2015-03-20 09:50:08 +00:00
2015-03-10 08:15:33 +03:00