From patchwork Tue Feb 11 14:11:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 24459 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C24ED20967 for ; Tue, 11 Feb 2014 14:13:12 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id wp4sf31038271obc.9 for ; Tue, 11 Feb 2014 06:13:11 -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=YLZM6lr4+fqd4qJQ3Rvo3NyAGxiBO17oiU3XdLdclvqk/GUa1tM0tqvodPBliHWsaP bQTBMWElKUtfF6u+dYE8ZRHMglpNIJT5iuonxrYLetSba3drpQT02teN0mGFlcehYwPy lWSMT8JLfqxMUyhUd6m29tf3y6LWwqJKb3GpVMSwxLLyp93gZPTN4rgi5rC1PoJliY2Z ZJoORhsWj8GYjaA3eLf1gJnNehaBQ5+IS2Qwq+FjhpIuARng3+df78GVaqmYIEoeRBq4 N/qHQrsaas7Lv9fVU+ondQVYMW5XMd4G53WsULZxlXIe16/zQwGO8OHdqasYTKKHqHtC 4vKg== X-Gm-Message-State: ALoCoQlgzjgE2vT/4wvq1SFF7ql4UAZVhLR1uALU/uyxS/K+qwEMndgCadWhWnAnCGUpJg61lEwb X-Received: by 10.42.196.71 with SMTP id ef7mr8047231icb.24.1392127991614; Tue, 11 Feb 2014 06:13:11 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.26.195 with SMTP id 61ls2334229qgv.19.gmail; Tue, 11 Feb 2014 06:13:11 -0800 (PST) X-Received: by 10.58.146.5 with SMTP id sy5mr258800veb.43.1392127991530; Tue, 11 Feb 2014 06:13:11 -0800 (PST) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id kp12si5942701vcb.91.2014.02.11.06.13.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Feb 2014 06:13:11 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.169; Received: by mail-ve0-f169.google.com with SMTP id oy12so6137171veb.14 for ; Tue, 11 Feb 2014 06:13:11 -0800 (PST) X-Received: by 10.220.92.135 with SMTP id r7mr28411681vcm.11.1392127991442; Tue, 11 Feb 2014 06:13:11 -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 u4csp249352vcz; Tue, 11 Feb 2014 06:13:10 -0800 (PST) X-Received: by 10.52.164.39 with SMTP id yn7mr9340816vdb.25.1392127990872; Tue, 11 Feb 2014 06:13:10 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id n17si5939419vcq.135.2014.02.11.06.13.10 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 11 Feb 2014 06:13:10 -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 1WDE3K-0002Xw-BL; Tue, 11 Feb 2014 14:11:10 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WDE3I-0002Xj-Uz for xen-devel@lists.xen.org; Tue, 11 Feb 2014 14:11:09 +0000 Received: from [85.158.139.211:42889] by server-2.bemta-5.messagelabs.com id 5B/0B-23037-C7F2AF25; Tue, 11 Feb 2014 14:11:08 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-2.tower-206.messagelabs.com!1392127865!3133880!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 21595 invoked from network); 11 Feb 2014 14:11:07 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-2.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 11 Feb 2014 14:11:07 -0000 X-IronPort-AV: E=Sophos;i="4.95,825,1384300800"; d="scan'208";a="99788793" Received: from accessns.citrite.net (HELO FTLPEX01CL03.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 11 Feb 2014 14:11:05 +0000 Received: from norwich.cam.xci-test.com (10.80.248.129) by smtprelay.citrix.com (10.13.107.80) with Microsoft SMTP Server id 14.2.342.4; Tue, 11 Feb 2014 09:11:04 -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 1WDE3E-00005n-94; Tue, 11 Feb 2014 14:11:04 +0000 From: Ian Campbell To: Date: Tue, 11 Feb 2014 14:11:00 +0000 Message-ID: <1392127864-2605-1-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1392127796.26657.130.camel@kazak.uk.xensource.com> References: <1392127796.26657.130.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 v5 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.128.169 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),