]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: monitor: Add APIs for cdrom tray handling for -blockdev
authorPeter Krempa <pkrempa@redhat.com>
Thu, 12 Jul 2018 10:11:31 +0000 (12:11 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 21 Aug 2018 13:46:06 +0000 (15:46 +0200)
commit2771b37209fca038559d9d073b197626cfb85d0a
treeae84be3494fcac050d6f115d0e4cf9d3c8828f03
parent6d5468adc4c960945a95206654949c144c5c4b09
qemu: monitor: Add APIs for cdrom tray handling for -blockdev

With blockdev we can use the full range of commands to manipulate the
tray and the medium separately. Implement monitor code for this.

Schema testing done in the qemumonitorjsontest allows us to verify that
we generate the commands correctly.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.h
tests/qemumonitorjsontest.c