From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: [PATCH] qemu-xen-trad: free all the pirqs for msi/msix when driver unloads Date: Tue, 5 Aug 2014 11:21:55 -0400 Message-ID: <20140805152155.GC19709@laptop.dumpdata.com> References: <1396975483-31442-1-git-send-email-konrad.wilk@oracle.com> <1396975483-31442-2-git-send-email-konrad.wilk@oracle.com> <21428.8198.371406.754367@mariner.uk.xensource.com> <53B4CA12.80709@oracle.com> <20140703175415.GB13710@konrad-lan.dumpdata.com> <53B60382.2070506@oracle.com> <20140707204010.GA17821@laptop.dumpdata.com> <53BB4587.2050106@oracle.com> <20140804140108.GB18425@laptop.dumpdata.com> <53E08856.1070502@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XEgYv-0007Vf-VS for xen-devel@lists.xenproject.org; Tue, 05 Aug 2014 15:22:06 +0000 Content-Disposition: inline In-Reply-To: <53E08856.1070502@oracle.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: Zhenzhong Duan Cc: xen-devel@lists.xenproject.org, Ian Jackson , stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Tue, Aug 05, 2014 at 03:31:34PM +0800, Zhenzhong Duan wrote: > > On 2014-8-4 22:01, Konrad Rzeszutek Wilk wrote: > >On Tue, Jul 08, 2014 at 09:12:39AM +0800, Zhenzhong Duan wrote: > >>On 2014-7-8 4:40, Konrad Rzeszutek Wilk wrote: > >>>On Fri, Jul 04, 2014 at 09:29:38AM +0800, Zhenzhong Duan wrote: > >>>>On 2014-7-4 1:54, Konrad Rzeszutek Wilk wrote: > >>>>>On Thu, Jul 03, 2014 at 11:12:18AM +0800, Zhenzhong Duan wrote: > >>>>>>There is a patch dependency missed. > >>>>>Is that one upstream as well? Or does it not need to be? > >>>>>If it is upstream, what is the title/commit id of that one? > >>>>> > >>>>>Thank you! > >>>>It's upstream, see detail below > >>>[konrad@build-external qemu-xen-dir]$ pwd > >>>/home/konrad/xtt-x86_64/xen/tools/qemu-xen-dir > >>>[konrad@build-external qemu-xen-dir]$ git show adf74189dd58014744a4b8c9d64407d629da5e2f > >>>fatal: bad object adf74189dd58014744a4b8c9d64407d629da5e2f > >>>[konrad@build-external qemu-xen-dir]$ git log --grep="clear all MSI" > >>>[konrad@build-external qemu-xen-dir]$ > >>> > >>>? > >>Sorry, I mean qemu-xen-traditional upstream git > >Ok, is that patch upstream? Should it be upstream? If so, had it been > >posted in the past? > It's already in qemu-xen upstream, see below > > void xen_pt_msi_disable(XenPCIPassthroughState *s) > { > ....... > /* clear msi info */ > msi->flags &= ~PCI_MSI_FLAGS_ENABLE; > msi->initialized = false; > msi->mapped = false; > msi->pirq = XEN_PT_UNASSIGNED_PIRQ; > } OK, and that is part of the giant '3854ca57': commit 3854ca577dad92c4fe97b4a6ebce360e25407af7 Author: Jiang Yunhong Date: Thu Jun 21 15:42:35 2012 +0000 Introduce Xen PCI Passthrough, MSI A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Jiang Yunhong Signed-off-by: Shan Haitao Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini And the git tree it points to has tons of tags but nothing really saying 'pci'. Seems like the only option is to spin out a tiny patch that has the fix and document where it was (aka point to the giant commit). Duan, I can do it in two-three weeks time-frame. If you want to take a stab at it before then, don't hesitate!