spapr_iommu: pass object ownership to parent/owner
commit8dc9785ca0ff4e1c2268eb70a8156ed9696f97be
authorMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 25 Jul 2017 18:00:09 +0000 (25 20:00 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 7 Sep 2017 23:30:54 +0000 (8 09:30 +1000)
tree2ff77259eb6d92986d73b1704207675188be8b81
parentf3f41030346832af62737d69d15fd8d6dab9ba79
spapr_iommu: pass object ownership to parent/owner

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 <mdroth@linux.vnet.ibm.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_iommu.c