]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-storage-daemon: Add --monitor option
authorKevin Wolf <kwolf@redhat.com>
Mon, 24 Feb 2020 14:30:08 +0000 (15:30 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 6 Mar 2020 16:21:28 +0000 (17:21 +0100)
commit2af282ec51a27116d0402cab237b8970800f870c
tree66a3c1b090cf5e81b8c13596d89aee4a847a2b97
parenta2f411c4671b0b6cfe5f3b91b65d9bc8456e75ab
qemu-storage-daemon: Add --monitor option

This adds and parses the --monitor option, so that a QMP monitor can be
used in the storage daemon. The monitor offers commands defined in the
QAPI schema at storage-daemon/qapi/qapi-schema.json.

The --monitor options currently allows to create multiple monitors with
the same ID. This part of the interface is considered unstable. We will
reject such configurations as soon as we have a design for the monitor
subsystem to perform these checks. (In the system emulator, we depend on
QemuOpts rejecting duplicate IDs.)

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20200224143008.13362-21-kwolf@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Makefile
Makefile.objs
monitor/Makefile.objs
qapi/Makefile.objs
qapi/transaction.json
qemu-storage-daemon.c
scripts/qapi/gen.py
storage-daemon/Makefile.objs [new file with mode: 0644]
storage-daemon/qapi/Makefile.objs [new file with mode: 0644]
storage-daemon/qapi/qapi-schema.json [new file with mode: 0644]