[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [RFC PATCH 04/15] spapr_iommu: pass object ownership to p
From: |
David Gibson |
Subject: |
Re: [Qemu-ppc] [RFC PATCH 04/15] spapr_iommu: pass object ownership to parent/owner |
Date: |
Tue, 5 May 2015 19:58:21 +1000 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Wed, Apr 29, 2015 at 02:20:13PM -0500, Michael Roth wrote:
> DRC objects attach themselves to an owner as a child
^^^
Copy and paste error in the commit message.
> property. unref afterward to allow them to be finalized
> when their owner is finalized.
>
> Signed-off-by: Michael Roth <address@hidden>
But otherwise,
Reviewed-by: David Gibson <address@hidden>
> ---
> 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 a14cdc4..79e998b 100644
> --- a/hw/ppc/spapr_iommu.c
> +++ b/hw/ppc/spapr_iommu.c
> @@ -182,6 +182,7 @@ sPAPRTCETable *spapr_tce_new_table(DeviceState *owner,
> uint32_t liobn,
>
> snprintf(tmp, sizeof(tmp), "tce-table-%x", liobn);
> object_property_add_child(OBJECT(owner), tmp, OBJECT(tcet), NULL);
> + 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
pgpj0oP0gjOtH.pgp
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-ppc] [RFC PATCH 04/15] spapr_iommu: pass object ownership to parent/owner,
David Gibson <=