[libvirt] [PATCH v2] qemu: Do not reattach PCI device used by other domain when shutdown

2011-10-12 Thread Osier Yang
When failing on starting a domain, it tries to reattach all the PCI devices defined in the domain conf, regardless of whether the devices are still used by other domain. This will cause the devices to be deleted from the list qemu_driver->activePciHostdevs, thus the devices will be thought as usabl

Re: [libvirt] [PATCH v2] qemu: Do not reattach PCI device used by other domain when shutdown

2011-10-12 Thread Osier Yang
于 2011年10月13日 12:05, Osier Yang 写道: > When failing on starting a domain, it tries to reattach all the PCI > devices defined in the domain conf, regardless of whether the devices > are still used by other domain. This will cause the devices to be deleted > from the list qemu_driver->activePciHostdev

Re: [libvirt] [PATCH v2] qemu: Do not reattach PCI device used by other domain when shutdown

2011-10-14 Thread Eric Blake
On 10/12/2011 10:05 PM, Osier Yang wrote: When failing on starting a domain, it tries to reattach all the PCI devices defined in the domain conf, regardless of whether the devices are still used by other domain. This will cause the devices to be deleted from the list qemu_driver->activePciHostdev

Re: [libvirt] [PATCH v2] qemu: Do not reattach PCI device used by other domain when shutdown

2011-10-16 Thread Osier Yang
于 2011年10月15日 02:53, Eric Blake 写道: On 10/12/2011 10:05 PM, Osier Yang wrote: When failing on starting a domain, it tries to reattach all the PCI devices defined in the domain conf, regardless of whether the devices are still used by other domain. This will cause the devices to be deleted from

Re: [libvirt] [PATCH v2] qemu: Do not reattach PCI device used by other domain when shutdown

2011-10-17 Thread Osier Yang
于 2011年10月17日 09:40, Osier Yang 写道: 于 2011年10月15日 02:53, Eric Blake 写道: On 10/12/2011 10:05 PM, Osier Yang wrote: When failing on starting a domain, it tries to reattach all the PCI devices defined in the domain conf, regardless of whether the devices are still used by other domain. This will c

Re: [libvirt] [PATCH v2] qemu: Do not reattach PCI device used by other domain when shutdown

2011-10-17 Thread Eric Blake
On 10/17/2011 04:44 AM, Osier Yang wrote: After thinking a while, even we set the used_by during domains reloading, the other attrs (dev->unbind_from_stub, dev->reprobe, dev->remove_slot) of the PCI dev still will be lost. We can't known what values should be for these attrs as generally they are