From: "Jan Beulich" Subject: Re: [PATCH v3 06/13] xen/passthrough: iommu: Split generic IOMMU code Date: Tue, 11 Mar 2014 16:50:04 +0000 Message-ID: <531F4CCC0200007800122F5F@nat28.tlf.novell.com> References: <1394552999-14171-1-git-send-email-julien.grall@linaro.org> <1394552999-14171-7-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.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WNPsW-0007dW-9E for xen-devel@lists.xenproject.org; Tue, 11 Mar 2014 16:50:08 +0000 In-Reply-To: <1394552999-14171-7-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 , stefano.stabellini@citrix.com, ian.campbell@citrix.com, Xiantao Zhang , tim@xen.org List-Id: xen-devel@lists.xenproject.org >>> On 11.03.14 at 16:49, Julien Grall wrote: > --- a/xen/drivers/passthrough/pci.c > +++ b/xen/drivers/passthrough/pci.c >... > +static int iommu_populate_page_table(struct domain *d) > +{ I continue to be of the opinion that this is misplaced here. There's nothing PCI-related in this function, and I doubt you can get away on ARM without similar code (if you can, this should go into .../x86/iommu.c imo). > --- /dev/null > +++ b/xen/include/asm-x86/iommu.h >... > +void iommu_set_dom0_mapping(struct domain *d); How is this x86-specific? Jan