Re: [libvirt] [PATCH 2/3] qemu: Delete USB devices used by domain on stop

2012-04-04 Thread Jiri Denemark
On Mon, Mar 26, 2012 at 17:40:00 +0200, Michal Privoznik wrote: > To prevent assigning one USB device to two domains, > we keep a list of assigned USB devices. On domain > startup - qemuProcessStart() - we insert devices > used by domain into the list but remove them only > on detach-device. Device

[libvirt] [PATCH 2/3] qemu: Delete USB devices used by domain on stop

2012-03-26 Thread Michal Privoznik
To prevent assigning one USB device to two domains, we keep a list of assigned USB devices. On domain startup - qemuProcessStart() - we insert devices used by domain into the list but remove them only on detach-device. Devices are, however, released on qemuProcessReconnect() as well. --- src/qemu/