This was supposed to be the first part of a series allowing to override the cache mode for backing files, and more specifically to support the test cases for that series.
However, this work turned out to be a bit more complicated than I had hoped, and the query improvement is nice to have on its own, so I'm sending this out as a standalone series. v2: - Markus didn't like QMP query-* commands that filter, so this series is mainly about HMP now [Markus] - Use BlockdevCacheInfo instead of BlockdevCacheOptions [Markus] - API version changed to 2.3 - Added 'info block -n' which lists all names nodes - Added a tab completion fix for HMP, bug exposed by 'info block -n' Kevin Wolf (5): block/qapi: Add cache information to query-block block/hmp: Factor out print_block_info() block/hmp: Allow info = NULL in print_block_info() block/hmp: Allow node-name in 'info block' monitor: Fix HMP tab completion block/qapi.c | 7 ++ hmp.c | 219 ++++++++++++++++++++++++++++----------------- monitor.c | 8 +- qapi/block-core.json | 20 ++++- tests/qemu-iotests/051.out | 1 + tests/qemu-iotests/067.out | 10 +-- 6 files changed, 173 insertions(+), 92 deletions(-) -- 1.8.3.1