qemu: hotplug: Add debug log when dispatching device removal to existing thread

Note that the waiting thread is signaled in the debug logs to simplify
debugging.
This commit is contained in:
Peter Krempa 2017-03-03 16:02:01 +01:00
parent c27020dd4f
commit d59ca12048

View File

@ -4383,6 +4383,7 @@ qemuDomainSignalDeviceRemoval(virDomainObjPtr vm,
qemuDomainObjPrivatePtr priv = vm->privateData; qemuDomainObjPrivatePtr priv = vm->privateData;
if (STREQ_NULLABLE(priv->unplug.alias, devAlias)) { if (STREQ_NULLABLE(priv->unplug.alias, devAlias)) {
VIR_DEBUG("Removal of device '%s' continues in waiting thread", devAlias);
qemuDomainResetDeviceRemoval(vm); qemuDomainResetDeviceRemoval(vm);
priv->unplug.status = status; priv->unplug.status = status;
virDomainObjBroadcast(vm); virDomainObjBroadcast(vm);