Re: [Qemu-devel] [RFC PATCH 05/15] spapr_pci: add PHB unrealize

2015-05-04 Thread Paolo Bonzini
On 01/05/2015 03:18, Michael Roth wrote: > Sorry, I mixed up memory regions with memory region alias. Memory region > aliases do a memory_region_ref() on the original MR, similar to > memory_region_add_subregion(), so that's what ends up creating the > reference to the owner/PHB. > > So I think

Re: [Qemu-devel] [RFC PATCH 05/15] spapr_pci: add PHB unrealize

2015-04-30 Thread Michael Roth
Quoting Paolo Bonzini (2015-04-30 09:05:17) > > > On 29/04/2015 21:20, Michael Roth wrote: > > To support PHB hotplug we need to clean up lingering references, > > memory, child properties, etc. prior to the PHB object being > > finalized. Generally this will be called as a result of calling > >

Re: [Qemu-devel] [RFC PATCH 05/15] spapr_pci: add PHB unrealize

2015-04-30 Thread Paolo Bonzini
On 29/04/2015 21:20, Michael Roth wrote: > To support PHB hotplug we need to clean up lingering references, > memory, child properties, etc. prior to the PHB object being > finalized. Generally this will be called as a result of calling > object_unref() on the PHB object, which in turn would norm

[Qemu-devel] [RFC PATCH 05/15] spapr_pci: add PHB unrealize

2015-04-29 Thread Michael Roth
To support PHB hotplug we need to clean up lingering references, memory, child properties, etc. prior to the PHB object being finalized. Generally this will be called as a result of calling object_unref() on the PHB object, which in turn would normally be called as the result of an unplug() operati