Re: [Qemu-devel] [PATCH RFC] pci: call PCIDeviceClass->exit on its .realize failure

2016-09-19 Thread Cao jin
Hi, sorry for replying late(was in vacation). On 09/14/2016 07:59 PM, Marcel Apfelbaum wrote: On 09/14/2016 12:14 PM, Cao jin wrote: It cannot guarantee all pci devices will free the allocated resource in its .realize function on realize failure. CC: Michael S. Tsirkin

Re: [Qemu-devel] [PATCH RFC] pci: call PCIDeviceClass->exit on its .realize failure

2016-09-14 Thread Marcel Apfelbaum
On 09/14/2016 12:14 PM, Cao jin wrote: It cannot guarantee all pci devices will free the allocated resource in its .realize function on realize failure. CC: Michael S. Tsirkin CC: Marcel Apfelbaum Signed-off-by: Cao jin --- I

[Qemu-devel] [PATCH RFC] pci: call PCIDeviceClass->exit on its .realize failure

2016-09-14 Thread Cao jin
It cannot guarantee all pci devices will free the allocated resource in its .realize function on realize failure. CC: Michael S. Tsirkin CC: Marcel Apfelbaum Signed-off-by: Cao jin --- I found not all the devices will free the