From: Julien Grall Subject: [RFC for-4.5 03/12] xen/passthrough: vtd: Don't export iommu_set_pgd Date: Fri, 7 Feb 2014 17:43:02 +0000 Message-ID: <1391794991-5919-4-git-send-email-julien.grall@linaro.org> References: <1391794991-5919-1-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 1WBpSb-0005D5-6H for xen-devel@lists.xenproject.org; Fri, 07 Feb 2014 17:43:29 +0000 Received: by mail-ea0-f175.google.com with SMTP id z10so1711939ead.6 for ; Fri, 07 Feb 2014 09:43:27 -0800 (PST) In-Reply-To: <1391794991-5919-1-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: ian.campbell@citrix.com, patches@linaro.org, Julien Grall , tim@xen.org, stefano.stabellini@citrix.com, Jan Beulich , Xiantoa Zhang List-Id: xen-devel@lists.xenproject.org iommu_set_pgd is only used internally in xen/drivers/passthrough/vtd/iommu.c Signed-off-by: Julien Grall Cc: Xiantoa Zhang Cc: Jan Beulich --- xen/drivers/passthrough/vtd/iommu.c | 2 +- xen/include/xen/iommu.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/xen/drivers/passthrough/vtd/iommu.c b/xen/drivers/passthrough/vtd/iommu.c index a8d33fc..d5ce5b7 100644 --- a/xen/drivers/passthrough/vtd/iommu.c +++ b/xen/drivers/passthrough/vtd/iommu.c @@ -1826,7 +1826,7 @@ static int vtd_ept_page_compatible(struct iommu *iommu) /* * set VT-d page table directory to EPT table if allowed */ -void iommu_set_pgd(struct domain *d) +static void iommu_set_pgd(struct domain *d) { struct hvm_iommu *hd = domain_hvm_iommu(d); mfn_t pgd_mfn; diff --git a/xen/include/xen/iommu.h b/xen/include/xen/iommu.h index 8bb0a1d..fcbc432 100644 --- a/xen/include/xen/iommu.h +++ b/xen/include/xen/iommu.h @@ -68,7 +68,6 @@ int iommu_map_page(struct domain *d, unsigned long gfn, unsigned long mfn, unsigned int flags); int iommu_unmap_page(struct domain *d, unsigned long gfn); void iommu_pte_flush(struct domain *d, u64 gfn, u64 *pte, int order, int present); -void iommu_set_pgd(struct domain *d); void iommu_domain_teardown(struct domain *d); void pt_pci_init(void); -- 1.7.10.4