From patchwork Sun Feb 23 22:16:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 25150 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f69.google.com (mail-pa0-f69.google.com [209.85.220.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 17CEF20143 for ; Sun, 23 Feb 2014 22:18:13 +0000 (UTC) Received: by mail-pa0-f69.google.com with SMTP id fa1sf16642732pad.0 for ; Sun, 23 Feb 2014 14:18:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :list-archive:content-type:content-transfer-encoding; bh=vKJ7HAmJgs94XbJOlu6FhuniGdAW1O+fDvAHV54hPd4=; b=DlS3nm1cbpnUQQFo5gVceAr228a48AxfuRPssvFtJ8JsDyBznlnW2XsC5wIpHV+0r2 yUCYA59dchCCT2kT8BrwNFYefPiW1g8hTNISoHr7zDiVwoQF8tkyM887niKJeLQi26M3 /rYxdeN6/w9BZ7S7186lig/5EUDiFgDJRJ9Qu70fK1X9y713RrxsCz6cklVyURxB66fa BwD/2Oa80WEqo2yOb0VQb44fNrlaOGgFNd/F0yvtYVLS0RZ37tXnAqN0sws8LZVQBlMV kAV1X/1cke94VN0De9n02GJbw90HRXa6UTO1zILBt/Mr1HGoU95wNjf60/O726jdLHAh DfzQ== X-Gm-Message-State: ALoCoQkM1kETP4MisWr6JdMFSJthEmudcpLwSEa/3dl5YD1ZR6ZdwkfZgYLuc2vK+Z8cLkgFFsj7 X-Received: by 10.66.253.9 with SMTP id zw9mr10475628pac.38.1393193893234; Sun, 23 Feb 2014 14:18:13 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.105.230 with SMTP id c93ls1664485qgf.35.gmail; Sun, 23 Feb 2014 14:18:13 -0800 (PST) X-Received: by 10.52.109.3 with SMTP id ho3mr8944745vdb.76.1393193893092; Sun, 23 Feb 2014 14:18:13 -0800 (PST) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id x7si5299109vel.114.2014.02.23.14.18.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 23 Feb 2014 14:18:13 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id ld13so5060700vcb.32 for ; Sun, 23 Feb 2014 14:18:13 -0800 (PST) X-Received: by 10.220.98.204 with SMTP id r12mr10813942vcn.48.1393193893004; Sun, 23 Feb 2014 14:18:13 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp20476vcz; Sun, 23 Feb 2014 14:18:12 -0800 (PST) X-Received: by 10.140.87.172 with SMTP id r41mr24277403qgd.101.1393193892537; Sun, 23 Feb 2014 14:18:12 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id x3si8093497qab.172.2014.02.23.14.18.11 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 23 Feb 2014 14:18:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WHhLn-0006p4-Jg; Sun, 23 Feb 2014 22:16:43 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WHhLm-0006oq-Ta for xen-devel@lists.xenproject.org; Sun, 23 Feb 2014 22:16:43 +0000 Received: from [193.109.254.147:65162] by server-16.bemta-14.messagelabs.com id AF/14-21945-A437A035; Sun, 23 Feb 2014 22:16:42 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-9.tower-27.messagelabs.com!1393193801!2272969!1 X-Originating-IP: [74.125.83.54] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.9.16; banners=-,-,- X-VirusChecked: Checked Received: (qmail 30740 invoked from network); 23 Feb 2014 22:16:41 -0000 Received: from mail-ee0-f54.google.com (HELO mail-ee0-f54.google.com) (74.125.83.54) by server-9.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 23 Feb 2014 22:16:41 -0000 Received: by mail-ee0-f54.google.com with SMTP id c41so1862319eek.41 for ; Sun, 23 Feb 2014 14:16:41 -0800 (PST) X-Received: by 10.14.2.193 with SMTP id 41mr20691199eef.55.1393193800949; Sun, 23 Feb 2014 14:16:40 -0800 (PST) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id g1sm55994749eet.6.2014.02.23.14.16.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Feb 2014 14:16:39 -0800 (PST) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Sun, 23 Feb 2014 22:16:20 +0000 Message-Id: <1393193792-20008-4-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1393193792-20008-1-git-send-email-julien.grall@linaro.org> References: <1393193792-20008-1-git-send-email-julien.grall@linaro.org> Cc: stefano.stabellini@citrix.com, Julien Grall , tim@xen.org, ian.campbell@citrix.com Subject: [Xen-devel] [PATCH v2 03/15] xen/passthrough: vtd: Don't export iommu_set_pgd X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.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.220.173 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 Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: iommu_set_pgd is only used internally in xen/drivers/passthrough/vtd/iommu.c Signed-off-by: Julien Grall Acked-by: Xiantoa Zhang Acked-by: 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);