From patchwork Mon Aug 14 14:24:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 110010 Delivered-To: patch@linaro.org Received: by 10.182.109.195 with SMTP id hu3csp4281648obb; Mon, 14 Aug 2017 07:26:22 -0700 (PDT) X-Received: by 10.107.163.9 with SMTP id m9mr8949850ioe.194.1502720782086; Mon, 14 Aug 2017 07:26:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502720782; cv=none; d=google.com; s=arc-20160816; b=B+gMROI1JJToeQ7VVWMlnpXB904mI0DzzWxsx31wj+y00HF6Jc7ungilj9Dx0LSLhv mMcu6kcdMp6ScAoutGcjM14t7hNlQ4zW4le7fdbM/HnDMP8KyrysR/t1nWUCSABwlk9k HrMQGMjqzB2JfQGD/i8yMke7U/PYmsNSfUrtCxSoCIRlLnBV5OYYn/vdTU8Exg6zNbcM UD//GZ42KHeBVCWLPjtQK3Rtbzy93gh/uhDdBk5BA2pHiWj5WOs8THXuyXSNVK8FFFuO Xl8ppgLt2W1l/c0agQifh9hFca9oWMsfpCBjBHpKBs/Fs/wOU35+XhFYZ31m3XzXjkAm ff2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:cc:references:in-reply-to:message-id:date:to :from:arc-authentication-results; bh=Vm4GJ8Bodth7i8WLT7Bv3tUhaNXPYy0/ydlqhXVZtVE=; b=ThnsscJstJj+M9cC33MpBNYtV128xQv/1TnnSa31iZBDm6fMw0uNdkWz/R39Bfm167 ZDHe0wgcGwiVg8YCm2VFWjYVfjfsb71UBPJgK9Yu8L7BYcIeYtQSr+48CV9SasmF2hCN mfnQzFbkitcuZaXuMqZvLoldVYgxMij4gqSmkeEuiWsF5TaeQgACVl1Bl28RG1V/kkPg t1xU/RrbzCtQM+0rW1fzszBDctCUPfqTJzSFtKAx2ZdKkYGEIoyOBcJg0cIFDnqUS1pY bvaGFgW/lUjbrmpRcbn4VXcsoobPoX06eFOwMh9lGpPRrH3P/i9zNRkyxlcMs4hmKw5e wLSw== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id 202si5325302itu.136.2017.08.14.07.26.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Aug 2017 07:26:22 -0700 (PDT) Received-SPF: neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhGIj-00011a-8Q; Mon, 14 Aug 2017 14:25:05 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhGIh-0000xh-Sm for xen-devel@lists.xen.org; Mon, 14 Aug 2017 14:25:03 +0000 Received: from [85.158.143.35] by server-5.bemta-6.messagelabs.com id 62/09-03368-FB2B1995; Mon, 14 Aug 2017 14:25:03 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMLMWRWlGSWpSXmKPExsVysyfVTXfvpom RBgsmGFks+biYxYHR4+ju30wBjFGsmXlJ+RUJrBm7v71lL7jBWzHreCdzA+M2ji5GLg4hgc2M EldWzmeBcE4zStx7PIeti5GTg01AU+LO509MILaIgLTEtc+XGUFsZoFIicMffrCD2MICQRLfO rYzg9gsAqoSfxbsAuvlFbCSeHF+KiuILSEgL7Gr7SKYzQkU77y7kwXEFhKwlDixejbbBEbuBY wMqxg1ilOLylKLdA2N9ZKKMtMzSnITM3N0DQ3M9HJTi4sT01NzEpOK9ZLzczcxAj3MAAQ7GL8 sCzjEKMnBpCTKm+DTGynEl5SfUpmRWJwRX1Sak1p8iFGGg0NJgjd148RIIcGi1PTUirTMHGCo waQlOHiURHhngaR5iwsSc4sz0yFSpxh1OV5N+P+NSYglLz8vVUqc99UGoCIBkKKM0jy4EbCwv 8QoKyXMywh0lBBPQWpRbmYJqvwrRnEORiVhXieQVTyZeSVwm14BHcEEdEQfyP28xSWJCCmpBs b9mVonNT4w8RpNzuILrHoU73g4oEQgKkfnYsFn27oy7hO2ujMu7bM4HVvTdO9bVWiMCMep+K4 HUQs9VK9v2/rUtCvtWMzBlQqR313X5mpuXHHAzcBv73+nG8HFAlsD3vps8n+2SmqyOfPcQynL SlmXrxDQO6ciu7Rlz7vVavFGvvp+MYZ/Y5VYijMSDbWYi4oTAXWQEYJ2AgAA X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-9.tower-21.messagelabs.com!1502720701!77719551!1 X-Originating-IP: [217.140.101.70] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 10167 invoked from network); 14 Aug 2017 14:25:01 -0000 Received: from usa-sjc-mx-foss1.foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-9.tower-21.messagelabs.com with SMTP; 14 Aug 2017 14:25:01 -0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 22C91199B; Mon, 14 Aug 2017 07:25:01 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.206.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 372973F483; Mon, 14 Aug 2017 07:25:00 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Mon, 14 Aug 2017 15:24:14 +0100 Message-Id: <20170814142418.13267-24-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170814142418.13267-1-julien.grall@arm.com> References: <20170814142418.13267-1-julien.grall@arm.com> Cc: andre.przywara@arm.com, Julien Grall , sstabellini@kernel.org Subject: [Xen-devel] [PATCH 23/27] xen/arm: mm: Rename 'ai' into 'flags' in create_xen_entries X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" The parameter 'ai' is used either for attribute index or for permissions. Follow-up patch will rework that parameters to carry more information. So rename the parameter to 'flags'. Signed-off-by: Julien Grall Reviewed-by: Andre Przywara --- xen/arch/arm/mm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c index c0d5fda269..411fe02842 100644 --- a/xen/arch/arm/mm.c +++ b/xen/arch/arm/mm.c @@ -986,7 +986,7 @@ static int create_xen_entries(enum xenmap_operation op, unsigned long virt, mfn_t mfn, unsigned long nr_mfns, - unsigned int ai) + unsigned int flags) { int rc; unsigned long addr = virt, addr_end = addr + nr_mfns * PAGE_SIZE; @@ -1021,7 +1021,7 @@ static int create_xen_entries(enum xenmap_operation op, } if ( op == RESERVE ) break; - pte = mfn_to_xen_entry(mfn, ai); + pte = mfn_to_xen_entry(mfn, flags); pte.pt.table = 1; write_pte(entry, pte); break; @@ -1038,8 +1038,8 @@ static int create_xen_entries(enum xenmap_operation op, else { pte = *entry; - pte.pt.ro = PTE_RO_MASK(ai); - pte.pt.xn = PTE_NX_MASK(ai); + pte.pt.ro = PTE_RO_MASK(flags); + pte.pt.xn = PTE_NX_MASK(flags); if ( !pte.pt.ro && !pte.pt.xn ) { printk("%s: Incorrect combination for addr=%lx\n",