block: do not allocate an iovec per read of a growable/zero_after_eof BDS
commite012b78cf5bc42f20ef1a1f78383035f2293ceea
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 17 Dec 2014 15:09:59 +0000 (17 16:09 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 13 Jan 2015 11:47:56 +0000 (13 11:47 +0000)
treee4f047daaccf6c044eba955e7f68250902f2ff01
parentfcf5def1ab0f94ff120b7141c943b517d2ece83d
block: do not allocate an iovec per read of a growable/zero_after_eof BDS

Most reads do not go past the end of the file, and they can use the
input QEMUIOVector instead of creating one.  This removes the
qemu_iovec_* functions from the profile.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c