]> xenbits.xensource.com Git - libvirt.git/commit
qemu: hotplug: Implement removable media change for -blockdev
authorPeter Krempa <pkrempa@redhat.com>
Fri, 13 Jul 2018 16:06:09 +0000 (18:06 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 21 Aug 2018 13:46:06 +0000 (15:46 +0200)
commitda7123a686f6d0d65dc14263d35f8ecd66f89fd1
tree2c758d5adbee746a77b566140b36bafbfe959d21
parent2771b37209fca038559d9d073b197626cfb85d0a
qemu: hotplug: Implement removable media change for -blockdev

Use the new APIs which allow to manipulate the tray and media separately
and also allow using a nodename to refer to a media to implement media
changing.

With the new approach we don't have to call eject twice as the media is
removed by calling qemuMonitorBlockdevMediumRemove.

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