Hi all! Here is a proposal for a new simple helper for a very often patter around qemu_iovec_init_external, when we need simple qiov with only one iov, initialized from external buffer.
Here only block/io.c updated to use new helper, I'll update other things on top of this separately. v2: - smarter padding for @size and changed structure - other fixes (described in each patch in Notes) Vladimir Sementsov-Ogievskiy (2): block: enhance QEMUIOVector structure block/io: use qemu_iovec_init_buf include/qemu/iov.h | 47 ++++++++++++++++++++++-- block/io.c | 90 +++++++++++----------------------------------- 2 files changed, 66 insertions(+), 71 deletions(-) -- 2.18.0