Re: [libvirt] [PATCH v2 06/11] qemu: handle race on device deletion and usb host device plugging

2019-09-13 Thread Nikolay Shirokovskiy
On 12.09.2019 23:37, Daniel Henrique Barboza wrote: > > > On 9/9/19 8:33 AM, Nikolay Shirokovskiy wrote: >> Imagine host usb device is unplugged from host and as a result we send >> command to qemu to delete appropriate device. Then before qemu device is >> deleted host usb device is plugged

Re: [libvirt] [PATCH v2 06/11] qemu: handle race on device deletion and usb host device plugging

2019-09-12 Thread Daniel Henrique Barboza
On 9/9/19 8:33 AM, Nikolay Shirokovskiy wrote: Imagine host usb device is unplugged from host and as a result we send command to qemu to delete appropriate device. Then before qemu device is deleted host usb device is plugged back. Currenly code supposes there is s/Currenly/Currently no

[libvirt] [PATCH v2 06/11] qemu: handle race on device deletion and usb host device plugging

2019-09-09 Thread Nikolay Shirokovskiy
Imagine host usb device is unplugged from host and as a result we send command to qemu to delete appropriate device. Then before qemu device is deleted host usb device is plugged back. Currenly code supposes there is no remnant device in qemu and will try to add new device and the attempt will