[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [for-2.11 PATCH 10/26] spapr_iommu: pass object ownership
From: |
David Gibson |
Subject: |
Re: [Qemu-ppc] [for-2.11 PATCH 10/26] spapr_iommu: pass object ownership to parent/owner |
Date: |
Wed, 26 Jul 2017 14:08:37 +1000 |
User-agent: |
Mutt/1.8.3 (2017-05-23) |
On Tue, Jul 25, 2017 at 08:00:09PM +0200, Greg Kurz wrote:
> From: Michael Roth <address@hidden>
>
> TCE table objects attach themselves to an owner as a child
> property. unref afterward to allow them to be finalized
> when their owner is finalized.
>
> Signed-off-by: Michael Roth <address@hidden>
> Reviewed-by: Paolo Bonzini <address@hidden>
> Reviewed-by: David Gibson <address@hidden>
> Signed-off-by: Greg Kurz <address@hidden>
Applied to ppc-for-2.11.
> ---
> Changes since RFC:
> - s/DRC/TCE table/ in changelog
> ---
> hw/ppc/spapr_iommu.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/hw/ppc/spapr_iommu.c b/hw/ppc/spapr_iommu.c
> index d4eca2a77225..8ec4e7a40834 100644
> --- a/hw/ppc/spapr_iommu.c
> +++ b/hw/ppc/spapr_iommu.c
> @@ -321,6 +321,7 @@ sPAPRTCETable *spapr_tce_new_table(DeviceState *owner,
> uint32_t liobn)
> tmp = g_strdup_printf("tce-table-%x", liobn);
> object_property_add_child(OBJECT(owner), tmp, OBJECT(tcet), NULL);
> g_free(tmp);
> + object_unref(OBJECT(tcet));
>
> object_property_set_bool(OBJECT(tcet), true, "realized", NULL);
>
>
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature
- [Qemu-ppc] [for-2.11 PATCH 07/26] spapr_drc: fix realize and unrealize, (continued)
- [Qemu-ppc] [for-2.11 PATCH 08/26] spapr_drc: add unrealize method to physical DRC class, Greg Kurz, 2017/07/25
- [Qemu-ppc] [for-2.11 PATCH 09/26] spapr_drc: pass object ownership to parent/owner, Greg Kurz, 2017/07/25
- [Qemu-ppc] [for-2.11 PATCH 10/26] spapr_iommu: pass object ownership to parent/owner, Greg Kurz, 2017/07/25
- Re: [Qemu-ppc] [for-2.11 PATCH 10/26] spapr_iommu: pass object ownership to parent/owner,
David Gibson <=
- [Qemu-ppc] [for-2.11 PATCH 11/26] spapr_iommu: unregister vmstate at unrealize time, Greg Kurz, 2017/07/25
- [Qemu-ppc] [for-2.11 PATCH 12/26] pci: allow cleanup/unregistration of PCI buses, Greg Kurz, 2017/07/25
- [Qemu-ppc] [for-2.11 PATCH 13/26] qdev: store DeviceState's canonical path to use when unparenting, Greg Kurz, 2017/07/25
[Qemu-ppc] [for-2.11 PATCH 14/26] spapr_pci: add PHB unrealize, Greg Kurz, 2017/07/25
[Qemu-ppc] [for-2.11 PATCH 15/26] spapr: add pseries-2.11 machine type, Greg Kurz, 2017/07/25