From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: [PATCH] qemu-xen: free all the pirqs for msi/msix when driver unload Date: Wed, 30 Apr 2014 09:30:42 -0400 Message-ID: <20140430133042.GA3461@phenom.dumpdata.com> References: <1396975053-16435-1-git-send-email-konrad@kernel.org> <1396975053-16435-2-git-send-email-konrad@kernel.org> <20140408172945.GA768@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WfUb9-0007Yp-LQ for xen-devel@lists.xenproject.org; Wed, 30 Apr 2014 13:30:55 +0000 Content-Disposition: inline In-Reply-To: <20140408172945.GA768@phenom.dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: anthony.perard@citrix.com, konrad@kernel.org, Zhenzhong Duan , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Tue, Apr 08, 2014 at 01:29:45PM -0400, Konrad Rzeszutek Wilk wrote: > On Tue, Apr 08, 2014 at 06:22:09PM +0100, Stefano Stabellini wrote: > > On Tue, 8 Apr 2014, konrad@kernel.org wrote: > > > From: Zhenzhong Duan > > > > > > Pirqs are not freed when driver unload, then new pirqs are allocated when > > > driver reload. This could exhaust pirqs if do it in a loop. > > > > > > This patch fixes the bug by freeing pirqs when ENABLE bit is cleared in > > > msi/msix control reg. > > > > > > There is also other way of fixing it such as reuse pirqs between driver reload, > > > but this way is better. > > > Xen-devel: http://marc.info/?l=xen-devel&m=136800120304275&w=2 > > > > > > Signed-off-by: Zhenzhong Duan > > > Signed-off-by: Konrad Rzeszutek Wilk > > > > I'll add it to my queue. > > Yeey! > > At the moment they are busy with the QEMU 2.0 release, I would rather > > wait for the next merge window. > > OK. When should I ping you so that in the unlikely event it gets lost > I would ping you? ping! Seems QEMU 2.0 is out > > Thanks!