From patchwork Fri Feb 7 17:43:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 24302 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 159C32096A for ; Fri, 7 Feb 2014 17:43:31 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id ar20sf9812762iec.5 for ; Fri, 07 Feb 2014 09:43:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=iiWciA/AuIQKwLpkCbz7yd8cXIHTjwg6w51XGWlmc5k=; b=TXNkUEys6VvKyhApkb+QXwRbicjRGpAY0s+ATGK083q/DpnuOHU0arOEIJAFc4wEKo bjZnjeaw5ERYXIy1Bs44KrtbFjzsqvPKaxtLhdOslkLe8bV+t/50DiykcvJFa21lZf1F 1cYLu0LPt6zZe8TyIZCXZesMgEUUvW7thdIVXzbifwGtIvN72ShZeA1wyqFnbbVxNUV/ AaDrjSNKjqz0yrr27kehgg2untNQKkjzwUuL5PTOuQ/yiMO3lhdMVchIjCJqmxbWIU/s tQmp/PqHI+bshyzNdADcyej4ovAGpgG/g3IuFi7AxDDOEUleZlQTlaXFsFZG3QTBhDRV 7LOg== X-Gm-Message-State: ALoCoQn82cFdvfzKeCELE1fiYOyhdRPrip0X2nEViWAHnrRvA1soNF+XaFAZ5zdFhosZ9Vc9Bkr7 X-Received: by 10.182.195.75 with SMTP id ic11mr6584875obc.31.1391795011237; Fri, 07 Feb 2014 09:43:31 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.38.47 with SMTP id s44ls1174646qgs.70.gmail; Fri, 07 Feb 2014 09:43:31 -0800 (PST) X-Received: by 10.58.123.70 with SMTP id ly6mr7125871veb.26.1391795011091; Fri, 07 Feb 2014 09:43:31 -0800 (PST) Received: from mail-vb0-f43.google.com (mail-vb0-f43.google.com [209.85.212.43]) by mx.google.com with ESMTPS id n17si1547718vcq.60.2014.02.07.09.43.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Feb 2014 09:43:31 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.43 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.43; Received: by mail-vb0-f43.google.com with SMTP id p5so2915067vbn.30 for ; Fri, 07 Feb 2014 09:43:31 -0800 (PST) X-Received: by 10.58.249.228 with SMTP id yx4mr72586vec.50.1391795010992; Fri, 07 Feb 2014 09:43:30 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp123586vcz; Fri, 7 Feb 2014 09:43:30 -0800 (PST) X-Received: by 10.14.104.201 with SMTP id i49mr5720368eeg.61.1391795007969; Fri, 07 Feb 2014 09:43:27 -0800 (PST) Received: from mail-ea0-f175.google.com (mail-ea0-f175.google.com [209.85.215.175]) by mx.google.com with ESMTPS id h9si9577370eev.105.2014.02.07.09.43.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Feb 2014 09:43:27 -0800 (PST) Received-SPF: neutral (google.com: 209.85.215.175 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=209.85.215.175; Received: by mail-ea0-f175.google.com with SMTP id z10so1723985ead.34 for ; Fri, 07 Feb 2014 09:43:27 -0800 (PST) X-Received: by 10.15.33.193 with SMTP id c41mr5611887eev.79.1391795007417; Fri, 07 Feb 2014 09:43:27 -0800 (PST) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id 8sm18849063eef.1.2014.02.07.09.43.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Feb 2014 09:43:26 -0800 (PST) From: Julien Grall To: xen-devel@lists.xenproject.org Cc: patches@linaro.org, ian.campbell@citrix.com, tim@xen.org, stefano.stabellini@citrix.com, Julien Grall , Xiantoa Zhang , Jan Beulich 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> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1391794991-5919-1-git-send-email-julien.grall@linaro.org> References: <1391794991-5919-1-git-send-email-julien.grall@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.43 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 Acked-by: Ian Campbell --- 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);