This adds some preparing patches for upcoming multiwrite modifications.
I will leave the dangerous patches for after 2.2 release.
v1->v2: - incorporated Max's comments, but did not display the default
value for write merging (Patch 3) in the HMP since we do not
do it for other commands. I would change this when the default
changes.
- added an iotest for the write-merging cmdline parameter [Max]
- fixed iotest 067 output
Peter Lieven (6):
block: add accounting for merged requests
block: introduce bdrv_runtime_opts
block: add a knob to disable multiwrite_merge
hw/virtio-blk: add a constant for max number of merged requests
block: add qemu-iotest for write-merge parameter
block: fix qemu-iotest reference output for test 067
block.c | 49 ++++++++++++++++++--
block/accounting.c | 7 +++
block/qapi.c | 3 ++
hmp.c | 10 +++-
hw/block/virtio-blk.c | 4 +-
include/block/accounting.h | 3 ++
include/block/block_int.h | 1 +
qapi/block-core.json | 19 +++++++-
qemu-options.hx | 1 +
qmp-commands.hx | 2 +
tests/qemu-iotests/067.out | 10 ++--
tests/qemu-iotests/108 | 108 ++++++++++++++++++++++++++++++++++++++++++++
tests/qemu-iotests/108.out | 63 ++++++++++++++++++++++++++
tests/qemu-iotests/group | 1 +
14 files changed, 267 insertions(+), 14 deletions(-)
create mode 100755 tests/qemu-iotests/108
create mode 100644 tests/qemu-iotests/108.out
--
1.7.9.5