]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: hotplug: Skip waiting for tray opening if qemu doesn't notify us
authorPeter Krempa <pkrempa@redhat.com>
Fri, 29 Apr 2016 11:49:13 +0000 (13:49 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 2 May 2016 06:49:34 +0000 (08:49 +0200)
commit833ae6b4356934e7b779c4be01bd2bf051930dde
treea7495bd2a46f0b6f4e936d784b6ce31122fde695
parenta34faf33011c5c0d7b47ee0849bf1e11635e17c5
qemu: hotplug: Skip waiting for tray opening if qemu doesn't notify us

If qemu doesn't support DEVICE_TRAY_MOVED event the code that attempts
to change media would attempt to re-eject the tray even if it wouldn't
be notified when the tray opened. Add a capability bit and skip retrying
for old qemus.
13 files changed:
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
src/qemu/qemu_hotplug.c
tests/qemucapabilitiesdata/caps_1.2.2-1.caps
tests/qemucapabilitiesdata/caps_1.3.1-1.caps
tests/qemucapabilitiesdata/caps_1.4.2-1.caps
tests/qemucapabilitiesdata/caps_1.5.3-1.caps
tests/qemucapabilitiesdata/caps_1.6.0-1.caps
tests/qemucapabilitiesdata/caps_1.6.50-1.caps
tests/qemucapabilitiesdata/caps_2.1.1-1.caps
tests/qemucapabilitiesdata/caps_2.4.0-1.caps
tests/qemucapabilitiesdata/caps_2.5.0-1.caps
tests/qemucapabilitiesdata/caps_2.6.0-1.caps