]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Don't delete USB device on failed qemuPrepareHostdevUSBDevices
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 17 May 2012 11:40:52 +0000 (13:40 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 17 May 2012 11:40:52 +0000 (13:40 +0200)
commit9c484e3dc5464dfbb538744360b401a0bc59c1c6
tree53fa8dabfe90ba2d7d18e5d96131247d609cd484
parent5a8262a0aebe64f7cf5dff1a784833788c966279
qemu: Don't delete USB device on failed qemuPrepareHostdevUSBDevices

If qemuPrepareHostdevUSBDevices fail it will roll back devices added
to the driver list of used devices. However, if it may fail because
the device is being used already. But then again - with roll back.
Therefore don't try to remove a usb device manually if the function
fail. Although, we want to remove the device if any operation
performed afterwards fail.
src/qemu/qemu_hotplug.c