On 14/07/2026 12.47, Kevin Wolf wrote:
Am 10.07.2026 um 11:36 hat Thomas Huth geschrieben:
From: Thomas Huth <[email protected]>

Other command line options like "-chardev", "-netdev" or "-device"
already present the user with a list of available parameters, but
when running "-blockdev help", there is currently only an error
message. There is already the possibility to run "-drive format=help",
but it does not seem to be documented, so this is not very useful
for the average user. Let's improve this situation by providing
the same list of available drivers when running QEMU with
"-blockdev help".

Signed-off-by: Thomas Huth <[email protected]>

Seems like a good idea to print at least some minimal help there.
However, I find the list from -drive format=help quite hard to read, and
repeating the same list twice for read-write and read-only doesn't help
either.

I don't expect we can change -drive because I seem to remember that
management tools look at it, but can we make -blockdev help more
consistent with the other examples you mention? Something like this:

     Available blockdev drivers:
       blkdebug
       blklogwrites (read-only)
       blkreplay
       ...

Yes, that's a good idea. I'll try to have a look at it.

Ideally, I'd also love to have a way to show all the options a specific
driver offers, but that probably won't happen before Markus QAPIfies the
CLI. :-)
This would be super helpful, indeed. It's really useful that we've already got this implemented for "-device xyz,help", would be very cool if we can finally also get this for -netdev (where it is also still missing) and
-blockdev.

 Thomas


Reply via email to