[libvirt] [PATCHv2] qemu_hotplug: Don't free the PCI device structure after hot-unplug

2012-05-22 Thread Peter Krempa
The pciDevice structure corresponding to the device being hot-unplugged was freed after it was stolen from activeList. The pointer was still used for eg-inactive list. This patch removes the free of the structure and frees it only if reset fails on the device. --- I've added a check for activePci

Re: [libvirt] [PATCHv2] qemu_hotplug: Don't free the PCI device structure after hot-unplug

2012-05-22 Thread Eric Blake
On 05/22/2012 03:00 AM, Peter Krempa wrote: The pciDevice structure corresponding to the device being hot-unplugged was freed after it was stolen from activeList. The pointer was still used for eg-inactive list. This patch removes the free of the structure and frees it only if reset fails on

Re: [libvirt] [PATCHv2] qemu_hotplug: Don't free the PCI device structure after hot-unplug

2012-05-22 Thread Peter Krempa
On 05/22/2012 02:42 PM, Eric Blake wrote: On 05/22/2012 03:00 AM, Peter Krempa wrote: The pciDevice structure corresponding to the device being hot-unplugged was freed after it was stolen from activeList. The pointer was still used for eg-inactive list. This patch removes the free of the