On Fri, Mar 11, 2016 at 09:26:23 +0000, Zhangbo (Oscar) wrote:
After rethinking, I guess there's still a problem:
Suggest that
1 the device got detached in qemu after 10 secs,
2 the func virDomainDetachDeviceFlags() has already returned success in the 5th
second. Libvirt won't wait for the DEVICE_DELETED event after then.
3 the 'def' has the device untouched
4 thus, 10 secs later, the device is detached successfully in qemu, but libvirt has
the device un-detached in def(transient XML).
Do you have an evidence (logs) of this happening? Such behavior would be
a bug since libvirt always listens to DEVICE_DELETED event and acts on
it even if virDomainDetachDeviceFlags already returned.
Jirka