]> xenbits.xensource.com Git - libvirt.git/commit
qemu: hotplug: consolidate media change code paths
authorPeter Krempa <pkrempa@redhat.com>
Mon, 13 Aug 2018 12:05:12 +0000 (14:05 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 21 Aug 2018 13:46:06 +0000 (15:46 +0200)
commit663b1d55de652201b19d875f0eff730dc28e689e
tree70abaf5ab7b58a9c7d6cbe7927a9f99ae646346d
parent8b5c8ecc0b2c49d79ea4e18a7c1e1e83b0576e3a
qemu: hotplug: consolidate media change code paths

Use qemuDomainAttachDeviceDiskLive to change the media in
qemuDomainChangeDiskLive as the former function already does all the
necessary steps to prepare the new medium.

This also allows us to turn qemuDomainChangeEjectableMedia static.

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