Re: [libvirt] qapi DEVICE_DELETED event issued *before* instance_finalize?!

2016-09-01 Thread Michal Privoznik
On 02.09.2016 01:11, Alex Williamson wrote: > Hey, > > > It appears that DEVICE_DELETED only means the VM is done with the > device but libvirt is interpreting it as QEMU is done with the device. > Which is correct? Do we need a new event or do we need to fix the > ordering of this event? An

[libvirt] qapi DEVICE_DELETED event issued *before* instance_finalize?!

2016-09-01 Thread Alex Williamson
Hey, I'm out of my QOM depth, so I'll just beg for help in advance. I noticed in testing vfio-pci hotunplug that the host seems to be trying to reclaim the device before QEMU is actually done with it, there's a very short race where libvirt has seen the DEVICE_DELETED event and tries to unbind