Re: [libvirt] [PATCH v4 10/10] Wait for iommmu device to go away before reprobing the host driver

2015-12-10 Thread Shivaprasad bhat
On Fri, Nov 20, 2015 at 9:07 PM, Laine Stump wrote: > On 11/14/2015 03:39 AM, Shivaprasad G Bhat wrote: >> >> There could be a delay of 1 or 2 seconds before the vfio-pci driver >> is unbound and the device file /dev/vfio/ is actually >> removed. If the file exists, the host

Re: [libvirt] [PATCH v4 10/10] Wait for iommmu device to go away before reprobing the host driver

2015-11-20 Thread Laine Stump
On 11/14/2015 03:39 AM, Shivaprasad G Bhat wrote: There could be a delay of 1 or 2 seconds before the vfio-pci driver is unbound and the device file /dev/vfio/ is actually removed. If the file exists, the host driver probing the device can lead to crash. So, wait and avoid the crash. If this

[libvirt] [PATCH v4 10/10] Wait for iommmu device to go away before reprobing the host driver

2015-11-14 Thread Shivaprasad G Bhat
There could be a delay of 1 or 2 seconds before the vfio-pci driver is unbound and the device file /dev/vfio/ is actually removed. If the file exists, the host driver probing the device can lead to crash. So, wait and avoid the crash. This cant be tested with the mock as the delay cant be