virtio-blk: Unify {non-,}dataplane's request handlings
commitb002254dbd4c19a01f29790f840f983803e26893
authorFam Zheng <famz@redhat.com>
Tue, 17 Jun 2014 06:32:09 +0000 (17 14:32 +0800)
committerKevin Wolf <kwolf@redhat.com>
Fri, 27 Jun 2014 16:20:39 +0000 (27 18:20 +0200)
tree3a39876b05a375f9cabd0fcca92284c22fd09ec9
parent4407c1c56adb0d3ef2bcbf577592d72278d6e11f
virtio-blk: Unify {non-,}dataplane's request handlings

This drops request handling code from dataplane, and uses code from
hw/block/virtio-blk.c.

It starts to use multiwrite as non-dataplane does.

Dataplane sets VirtIOBlock.complete_request to vring version, and calls
into non-dataplane's process handling. In complete_request_early,
qiov.size is added to vring push length, because it's also called in rw
completion now.

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