Re: [Qemu-devel] [PATCH v4 07/18] spapr_iommu: Implement free_table() helper

2015-02-02 Thread Alexey Kardashevskiy
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/02/2015 05:37 PM, David Gibson wrote: On Thu, Jan 29, 2015 at 08:27:19PM +1100, Alexey Kardashevskiy wrote: Every sPAPRTCETable object holds an IOMMU memory region which holds a referenced to the sPAPRTCETable instance. So if we want to free

Re: [Qemu-devel] [PATCH v4 07/18] spapr_iommu: Implement free_table() helper

2015-02-01 Thread David Gibson
On Thu, Jan 29, 2015 at 08:27:19PM +1100, Alexey Kardashevskiy wrote: Every sPAPRTCETable object holds an IOMMU memory region which holds a referenced to the sPAPRTCETable instance. So if we want to free an sPAPRTCETable instance, calling object_unref() will not be enough as embedded memory

[Qemu-devel] [PATCH v4 07/18] spapr_iommu: Implement free_table() helper

2015-01-29 Thread Alexey Kardashevskiy
Every sPAPRTCETable object holds an IOMMU memory region which holds a referenced to the sPAPRTCETable instance. So if we want to free an sPAPRTCETable instance, calling object_unref() will not be enough as embedded memory region will hold the reference and we need to break the loop. This adds a