From: "Jan Beulich" Subject: Re: [PATCH v2 15/21] xen/passthrough: Call arch_iommu_domain_destroy before calling iommu_teardown Date: Fri, 01 Aug 2014 10:00:45 +0100 Message-ID: <53DB735D0200007800028528@mail.emea.novell.com> References: <1406818852-31856-1-git-send-email-julien.grall@linaro.org> <1406818852-31856-16-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XD8hj-0004be-6s for xen-devel@lists.xenproject.org; Fri, 01 Aug 2014 09:00:47 +0000 In-Reply-To: <1406818852-31856-16-git-send-email-julien.grall@linaro.org> 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: Julien Grall Cc: xen-devel@lists.xenproject.org, stefano.stabellini@citrix.com, ian.campbell@citrix.com, tim@xen.org List-Id: xen-devel@lists.xenproject.org >>> On 31.07.14 at 17:00, wrote: > arch_iommu_domain_destroy contains specific architecture code. > > On x86, this code will clean up the ioport_list which is not used in > both iommu (i.e AMD & x86) drivers. > > On ARM, the toolstack may not have deassign every device to the guest. > Therefore, we have to go through the device list and removing them before > asking the IOMMU drivers to release memory for this domain. This is done > by iommu_dt_domain_destroy which is called by arch_iommu_domain_destroy. > > Signed-off-by: Julien Grall > Cc: Jan Beulich > > --- > I didn't change this patch as I wasn't sure what was the conclusion of > the discussion on the RFC My perspective hasn't changed. And rather than leaving hunting down that previous discussion in the list archives to every one of those who read this, you could have included a reference here. Jan