]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
virtio-blk: Convert VirtIOBlockReq.out to structrue
authorFam Zheng <famz@redhat.com>
Wed, 11 Jun 2014 04:11:48 +0000 (12:11 +0800)
committerKevin Wolf <kwolf@redhat.com>
Fri, 27 Jun 2014 16:18:25 +0000 (18:18 +0200)
commit827805a2492c1bbf1c0712ed18ee069b4ebf3dd6
tree879b2006b295fb99e4f545d3ddde0fb3eb1c2efc
parenteddb102e86f61d4b71877f8ac268ebc4bf7265bf
virtio-blk: Convert VirtIOBlockReq.out to structrue

The virtio code currently assumes that the outhdr is in its own iovec.
This is not guaranteed by the spec, so we should relax this assumption.

Convert the VirtIOBlockReq.out field to structrue so that we can use
iov_to_buf and then discard the header from the beginning of iovec.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/block/virtio-blk.c
include/hw/virtio/virtio-blk.h