From patchwork Fri Feb 7 12:12:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 24293 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f72.google.com (mail-pa0-f72.google.com [209.85.220.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8990C2096A for ; Fri, 7 Feb 2014 12:14:44 +0000 (UTC) Received: by mail-pa0-f72.google.com with SMTP id rd3sf5641669pab.7 for ; Fri, 07 Feb 2014 04:14:43 -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:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:list-archive:content-type:content-transfer-encoding; bh=MZfsJXRRodk91avDzGp7I31/5rA13Kjz4u2r+D1sUjY=; b=M+cZyxbcZJe1FdPZuYmiNjSYAC/n/2JIpRIwMoIrJMFnUPUGIFmhd1Rh+5uH8oMZiT X0LyZh05o864qGMdoy/oSrvYhs2zP6ULcme6VdwIA4QAh4sP0RGZ8hh+9kQ0X5q2Fn2/ /mUzvzt9yFq4tqG/xNnpbmu3kYpOrcoCe/FlySM0FhkK+QmDrkEXUMCUdrsVdMZ5lBM4 3GzYc51y22RbqlZyPCrpyLOl/RDsVlWmltefX5I4RYBlrmEF1MB2CD3bqrns7x4C9YHI Nn+opRDG6FfCzkQIipm4wNRA/48IIDF17j06TYAhxt6gYw6XdOotmMuwm1h8vcy0bAOo 3EVw== X-Gm-Message-State: ALoCoQn+w4ZMimTr5Fgtcc8XszN5XTMnd2+0whe7055zaWLYDZxTV1DrxJ/TibAAiFTtTvQh66Z3 X-Received: by 10.66.218.70 with SMTP id pe6mr2618756pac.33.1391775283802; Fri, 07 Feb 2014 04:14:43 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.80.98 with SMTP id b89ls998322qgd.9.gmail; Fri, 07 Feb 2014 04:14:43 -0800 (PST) X-Received: by 10.58.100.100 with SMTP id ex4mr10236193veb.2.1391775283713; Fri, 07 Feb 2014 04:14:43 -0800 (PST) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id yb7si1258096vec.77.2014.02.07.04.14.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Feb 2014 04:14:43 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.178 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.178; Received: by mail-vc0-f178.google.com with SMTP id ik5so2612239vcb.9 for ; Fri, 07 Feb 2014 04:14:43 -0800 (PST) X-Received: by 10.221.66.73 with SMTP id xp9mr1348991vcb.27.1391775283625; Fri, 07 Feb 2014 04:14:43 -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 u4csp98751vcz; Fri, 7 Feb 2014 04:14:43 -0800 (PST) X-Received: by 10.59.5.102 with SMTP id cl6mr35944ved.41.1391775282222; Fri, 07 Feb 2014 04:14:42 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id cz20si1261101veb.53.2014.02.07.04.14.41 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 07 Feb 2014 04:14:42 -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 1WBkIo-0008Jo-PX; Fri, 07 Feb 2014 12:13:02 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WBkIm-0008JT-Vb for xen-devel@lists.xen.org; Fri, 07 Feb 2014 12:13:01 +0000 Received: from [85.158.139.211:15387] by server-17.bemta-5.messagelabs.com id 38/71-31975-CCDC4F25; Fri, 07 Feb 2014 12:13:00 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-6.tower-206.messagelabs.com!1391775177!2373221!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n X-StarScan-Received: X-StarScan-Version: 6.9.16; banners=-,-,- X-VirusChecked: Checked Received: (qmail 24129 invoked from network); 7 Feb 2014 12:12:59 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-6.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 7 Feb 2014 12:12:59 -0000 X-IronPort-AV: E=Sophos;i="4.95,800,1384300800"; d="scan'208";a="98945532" Received: from accessns.citrite.net (HELO FTLPEX01CL02.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 07 Feb 2014 12:12:57 +0000 Received: from norwich.cam.xci-test.com (10.80.248.129) by smtprelay.citrix.com (10.13.107.79) with Microsoft SMTP Server id 14.2.342.4; Fri, 7 Feb 2014 07:12:57 -0500 Received: from drall.uk.xensource.com ([10.80.16.71] helo=drall.uk.xensource.com.) by norwich.cam.xci-test.com with esmtp (Exim 4.72) (envelope-from ) id 1WBkIi-0002qV-Pg; Fri, 07 Feb 2014 12:12:56 +0000 From: Ian Campbell To: Date: Fri, 7 Feb 2014 12:12:52 +0000 Message-ID: <1391775176-30313-1-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1391775139.2162.88.camel@kazak.uk.xensource.com> References: <1391775139.2162.88.camel@kazak.uk.xensource.com> MIME-Version: 1.0 X-DLP: MIA2 Cc: julien.grall@linaro.org, tim@xen.org, Ian Campbell , stefano.stabellini@eu.citrix.com Subject: [Xen-devel] [PATCH v4 1/5] xen: arm: rename create_p2m_entries to apply_p2m_changes 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: , 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: ian.campbell@citrix.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.178 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: This function hasn't been only about creating for quite a while. This is purely a rename. Signed-off-by: Ian Campbell Acked-by: Julien Grall --- xen/arch/arm/p2m.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c index 85ca330..ace3c54 100644 --- a/xen/arch/arm/p2m.c +++ b/xen/arch/arm/p2m.c @@ -230,7 +230,7 @@ enum p2m_operation { RELINQUISH, }; -static int create_p2m_entries(struct domain *d, +static int apply_p2m_changes(struct domain *d, enum p2m_operation op, paddr_t start_gpaddr, paddr_t end_gpaddr, @@ -438,8 +438,8 @@ int p2m_populate_ram(struct domain *d, paddr_t start, paddr_t end) { - return create_p2m_entries(d, ALLOCATE, start, end, - 0, MATTR_MEM, p2m_ram_rw); + return apply_p2m_changes(d, ALLOCATE, start, end, + 0, MATTR_MEM, p2m_ram_rw); } int map_mmio_regions(struct domain *d, @@ -447,8 +447,8 @@ int map_mmio_regions(struct domain *d, paddr_t end_gaddr, paddr_t maddr) { - return create_p2m_entries(d, INSERT, start_gaddr, end_gaddr, - maddr, MATTR_DEV, p2m_mmio_direct); + return apply_p2m_changes(d, INSERT, start_gaddr, end_gaddr, + maddr, MATTR_DEV, p2m_mmio_direct); } int guest_physmap_add_entry(struct domain *d, @@ -457,20 +457,20 @@ int guest_physmap_add_entry(struct domain *d, unsigned long page_order, p2m_type_t t) { - return create_p2m_entries(d, INSERT, - pfn_to_paddr(gpfn), - pfn_to_paddr(gpfn + (1 << page_order)), - pfn_to_paddr(mfn), MATTR_MEM, t); + return apply_p2m_changes(d, INSERT, + pfn_to_paddr(gpfn), + pfn_to_paddr(gpfn + (1 << page_order)), + pfn_to_paddr(mfn), MATTR_MEM, t); } void guest_physmap_remove_page(struct domain *d, unsigned long gpfn, unsigned long mfn, unsigned int page_order) { - create_p2m_entries(d, REMOVE, - pfn_to_paddr(gpfn), - pfn_to_paddr(gpfn + (1<arch.p2m; - return create_p2m_entries(d, RELINQUISH, + return apply_p2m_changes(d, RELINQUISH, pfn_to_paddr(p2m->next_gfn_to_relinquish), pfn_to_paddr(p2m->max_mapped_gfn), pfn_to_paddr(INVALID_MFN),