]> git.proxmox.com Git - mirror_qemu.git/commit - hmp-commands.hx
hmp: Allow using qdev ID for qemu-io command
authorKevin Wolf <kwolf@redhat.com>
Tue, 17 Dec 2019 14:13:34 +0000 (15:13 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 19 Dec 2019 17:04:25 +0000 (18:04 +0100)
commit89b6fc45614bb45dcd58f1590415afe5c2791abd
tree3f1de174742b60342e52dcc4d98261777392be10
parent7bb4941ace471fc7dd6ded4749b95b9622baa6ed
hmp: Allow using qdev ID for qemu-io command

In order to issue requests on an existing BlockBackend with the
'qemu-io' HMP command, allow specifying the BlockBackend not only with a
BlockBackend name, but also with a qdev ID/QOM path for a device that
owns the (possibly anonymous) BlockBackend.

Because qdev names could be conflicting with BlockBackend and node
names, introduce a -d option to explicitly address a device. If the
option is not given, a BlockBackend or a node is addressed.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hmp-commands.hx
monitor/hmp-cmds.c