]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: hotplug: wait for the tray to eject only for drives with a tray
authorPeter Krempa <pkrempa@redhat.com>
Thu, 19 May 2016 13:30:12 +0000 (15:30 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 25 May 2016 08:15:54 +0000 (10:15 +0200)
commit72a7ff6b507bcf389cc493ac0ba07d32de266d6e
tree0b5a47be70f02767a76e5c85596eb07f8aec0078
parent2e75da42e41af0cd48ca6f75d0606b40a366cc54
qemu: hotplug: wait for the tray to eject only for drives with a tray

Use the detected tray presence flag to trigger the tray waiting code
only if the given storage device in qemu reports to have a tray.

This is necessary as the floppy device lost it's tray as of qemu commit:

commit abb3e55b5b718d6392441f56ba0729a62105ac56
Author: Max Reitz <mreitz@redhat.com>
Date:   Fri Jan 29 20:49:12 2016 +0100

    Revert "hw/block/fdc: Implement tray status"
src/qemu/qemu_hotplug.c