qemu/include/hw/virtio
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
..
dataplane virtio: use standard virtio_ring.h 2015-02-26 13:04:03 +01:00
vhost-backend.h virtio: Move extern declaration to header file 2014-08-09 00:06:32 +04:00
vhost-scsi.h vhost-scsi: add a property for booting 2015-02-11 21:47:52 +01:00
vhost.h vhost: fix typo in vq_index description 2015-04-04 09:48:19 +03:00
virtio-9p.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
virtio-access.h virtio: memory accessors for endian-ambivalent targets 2014-06-29 19:39:42 +03:00
virtio-balloon.h virtio-balloon: use standard headers 2015-02-26 13:04:03 +01:00
virtio-blk.h virtio-blk: correctly dirty guest memory 2015-04-08 10:39:18 +01:00
virtio-bus.h virtio: cull virtio_bus_set_vdev_features 2015-02-26 13:04:07 +01:00
virtio-net.h virtio-net,tap: use standard-headers 2015-02-26 13:04:04 +01:00
virtio-rng.h virtio-rng: use standard-headers 2015-02-26 13:04:04 +01:00
virtio-scsi.h virtio-scsi: remove empty wrapper for cmd 2015-03-11 18:24:30 +01:00
virtio-serial.h virtio: serial: expose a 'guest_writable' callback for users 2015-03-19 17:35:40 +05:30
virtio.h virtio: add feature checking helpers 2015-02-26 13:04:07 +01:00