From: "Jan Beulich" Subject: Re: [PATCH v3 17/24] xen/passthrough: arm: release earlier the DT devices assigned to a guest Date: Mon, 23 Feb 2015 16:22:56 +0000 Message-ID: <54EB61F00200007800062AF8@mail.emea.novell.com> References: <1421159133-31526-1-git-send-email-julien.grall@linaro.org> <1421159133-31526-18-git-send-email-julien.grall@linaro.org> <1424451784.30924.362.camel@citrix.com> <54E7730D.4020009@linaro.org> <54EB02CF02000078000625E4@mail.emea.novell.com> <1424705586.27930.166.camel@citrix.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 1YPvmg-0003ff-PJ for xen-devel@lists.xenproject.org; Mon, 23 Feb 2015 16:23:02 +0000 In-Reply-To: <1424705586.27930.166.camel@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xenproject.org, Julien Grall , stefano.stabellini@citrix.com, tim@xen.org List-Id: xen-devel@lists.xenproject.org >>> On 23.02.15 at 16:33, wrote: > On Mon, 2015-02-23 at 09:37 +0000, Jan Beulich wrote: >> >>> On 20.02.15 at 18:46, wrote: >> > On 20/02/15 17:03, Ian Campbell wrote: >> >> On Tue, 2015-01-13 at 14:25 +0000, Julien Grall wrote: >> >> >> >> Subject: "release the DT devices assigned to a guest earlier" >> >> >> >>> The toolstack may not have deassign every device used by a guest. >> >> >> >> "deassigned" >> >> >> >>> Therefore we have to go through the device list and removing them before >> >> >> >> "and remove them" >> >> >> >>> asking the IOMMU drivers to release memory for this domain. >> >>> >> >>> This can be done by moving the call to the release function when we >> >>> relinquish the resources. The IOMMU part will be destroyed later when >> >>> the domain is freed. >> >>> >> >>> Signed-off-by: Julien Grall >> >>> Cc: Jan Beulich >> >> >> >> Acked-by: Ian Campbell >> >> >> >> I'd like to hear Jan's opinion though. >> > >> > FWIW, this is how it's done for PCI. >> >> Right, IOW I agree to the idea of the patch. > > Thanks. If Julien could record this in the form of an ack that would > save me remembering you've said so (otherwise it could just go as a > comment after the --- I suppose). That's fine with me, I just didn't say so because it seemed a bit odd on an ARM-only change. Jan