Re: [PATCH 2/6] xive, xics: Fix reference counting on CPU objects

2019-10-23 Thread David Gibson
On Wed, Oct 23, 2019 at 04:52:05PM +0200, Greg Kurz wrote: > When a VCPU gets connected to the XIVE interrupt controller, we add a > const link targetting the CPU object to the TCTX object. Similar links > are added to the ICP object when using the XICS interrupt controller. > > As explained in :

[PATCH 2/6] xive, xics: Fix reference counting on CPU objects

2019-10-23 Thread Greg Kurz
When a VCPU gets connected to the XIVE interrupt controller, we add a const link targetting the CPU object to the TCTX object. Similar links are added to the ICP object when using the XICS interrupt controller. As explained in : * The caller must ensure that @target stays alive as long as *