On 16.09.2019 11:30, Peter Krempa wrote: > On Mon, Sep 09, 2019 at 14:33:12 +0300, Nikolay Shirokovskiy wrote: >> First I don't want to add code to handle dummy device that is used when >> host usb device is not present at the moment of starting/migrating etc. >> Second supporting non mandatory policies would require to handle races >> when host usb device is plugged to host and libvirtd starts adding >> device but if in the meanwhile host usb device it unplugged back then >> current code will use dummy device which is not desired in this case. > > I don't think that handling startupPolicy for cases other than VM > startup makes semantic sense. Could you elaborate what's the goal? I > didn't quite get it from the commit message. > We have different states for device that was missing on start and device that was unplugged. In the former case we have stub device in qemu (bus=0, device=0) while in the latter case we don't have any correnspondent device in qemu. So I don't want add extra logic to handle the first case on re-plug. Nikolay -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
- Re: [libvirt] [PATCH v2 04/11] qe... Nikolay Shirokovskiy
- [libvirt] [PATCH v2 03/11] qemu: support usb hostd... Nikolay Shirokovskiy
- Re: [libvirt] [PATCH v2 03/11] qemu: support ... Daniel Henrique Barboza
- [libvirt] [PATCH v2 06/11] qemu: handle race on de... Nikolay Shirokovskiy
- Re: [libvirt] [PATCH v2 06/11] qemu: handle r... Daniel Henrique Barboza
- Re: [libvirt] [PATCH v2 06/11] qemu: hand... Nikolay Shirokovskiy
- [libvirt] [PATCH v2 10/11] qemu: handle detaching ... Nikolay Shirokovskiy
- [libvirt] [PATCH v2 09/11] qemu: don't mess with n... Nikolay Shirokovskiy
- Re: [libvirt] [PATCH v2 09/11] qemu: don't me... Daniel Henrique Barboza
- Re: [libvirt] [PATCH v2 09/11] qemu: don't me... Peter Krempa
- Re: [libvirt] [PATCH v2 09/11] qemu: don'... Nikolay Shirokovskiy
- Re: [libvirt] [PATCH v2 09/11] qemu: ... Peter Krempa
- Re: [libvirt] [PATCH v2 09/11] qe... Nikolay Shirokovskiy
- [libvirt] [PATCH v2 05/11] qemu: handle libvirtd r... Nikolay Shirokovskiy
- Re: [libvirt] [PATCH v2 05/11] qemu: handle l... Daniel Henrique Barboza
- [libvirt] [PATCH v2 08/11] qemu: handle host usb d... Nikolay Shirokovskiy
- Re: [libvirt] [PATCH v2 08/11] qemu: handle h... Daniel Henrique Barboza
- [libvirt] [PATCH v2 11/11] conf: parse hostdev mis... Nikolay Shirokovskiy
- Re: [libvirt] [PATCH v2 11/11] conf: parse ho... Daniel Henrique Barboza
- Re: [libvirt] [PATCH v2 00/11] hostdev: handle usb... Daniel Henrique Barboza
- Re: [libvirt] [PATCH v2 00/11] hostdev: handl... Nikolay Shirokovskiy