From patchwork Tue Sep 12 10:03:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 112285 Delivered-To: patch@linaro.org Received: by 10.80.202.13 with SMTP id d13csp5674711edi; Tue, 12 Sep 2017 03:05:58 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBez0K7YcjENLFGScmo73a/2LGbGj+wkjcgnNFEM/PRi+cyfIhe0UZvaq2rznW+0EOGPo6j X-Received: by 10.36.77.66 with SMTP id l63mr262122itb.49.1505210758522; Tue, 12 Sep 2017 03:05:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505210758; cv=none; d=google.com; s=arc-20160816; b=agVD/9TD/RoWqkdCTnmlAHSUx1yFhFFCW4QEBGhCdd+1GmqsKcPIrCVoFSs92Dc1MB gemm4RNkytPP/sdboXq7K956DiKYIUOcWSCQdE6UekZGzumrTW4GBNgai7zMAyt9VvlV So833810KLpr2h9G3y0cTcMNTDj/9VHHh3UJD8NCsI15DTGu4I1E4kMqd0vi2lIGu4wq xHJWT/I6E52/AgcEKW1H5lh55kIUbkeRIJpoFuL88jcxKsOSF3xObzkl1xkLboH1zpVZ uyS++LEY3ZtI7nsXUsOgMGCrxpSpHWtntBjRRCDf7dKNE3jWnvuYJOBPDL2efXpp09PA CehA== 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=3Zkgr53pNBV8ABVmBRFb8XpSHCHT/qfOHYcQ1l0H/SQ=; b=kEROAr3esMGW7yS1rhbJqQBkKDREbU63UhyHVz56Z8PKSdy5j2mTqQCMb5Oqm8ci+e MCkpLgMnSXuZg10d15xx0IsvStPZhtEvsYYf7+mCGbhh1JeSAUi7rKfeCUNVO1Py0WEL InQ/X7GkKbj4EjBZmTxzWaybcSwMR8Ccey6rA1TpC37iE1MvxuHZx2oNS+q+lb5MEAaU xwKceWWwKrDcOqzpSl0nG6byxu4ybVkFIG1jUcrgXsIuicgH4XZRPovD8ntDlWjQb1sC wpei7gX++PBkcEkj1pamFx6xCpwOKo8QHdZ5mmFLlzm6rhTpddTJUitT51jksCkVRdo1 WZ0g== 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 l22si10502864ita.21.2017.09.12.03.05.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Sep 2017 03:05:58 -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 1dri35-0003MH-NK; Tue, 12 Sep 2017 10:04:07 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dri34-0003Hq-1C for xen-devel@lists.xen.org; Tue, 12 Sep 2017 10:04:06 +0000 Received: from [85.158.137.68] by server-11.bemta-3.messagelabs.com id D7/DF-01812-511B7B95; Tue, 12 Sep 2017 10:04:05 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrILMWRWlGSWpSXmKPExsVysyfVTVdk4/Z Ig48npC2WfFzM4sDocXT3b6YAxijWzLyk/IoE1ozlq3+zFJzgq3ix6x9zA2MPZxcjF4eQwGZG ie75J9ggnNOMErebuhm7GDk52AQ0Je58/sQEYosISEtc+3wZLM4sEClx+MMPdhBbWCBUYnvLL 6AaDg4WAVWJCWfiQMK8ApYS81duYAWxJQTkJXa1XQSzOYHiKz7+YgOxhQQsJL6//ME4gZF7AS PDKkb14tSistQiXRO9pKLM9IyS3MTMHF1DA2O93NTi4sT01JzEpGK95PzcTYxA7zIAwQ7Gxi9 OhxglOZiURHmPrN8eKcSXlJ9SmZFYnBFfVJqTWnyIUYaDQ0mCt2oDUE6wKDU9tSItMwcYZjBp CQ4eJRHeAJA0b3FBYm5xZjpE6hSjLkfHzbt/mIRY8vLzUqXEed+AzBcAKcoozYMbAQv5S4yyU sK8jEBHCfEUpBblZpagyr9iFOdgVBLmDQVZxZOZVwK36RXQEUxAR/Bc2gJyREkiQkqqgXGm4E ZP3x1VE/Z9nbxs54V9lm67p7J4MO5aFXdul+ImwXtMl3+Vftzz9P48zT8BM3ynLHrgzqlRuX7 di+6zE/M/R2bnnAhVmv/IjN/lmMmTJRPPi+iV/fItu9HZmyDnc/fPC/YTh21vPjZe+aqEbzPv 43u5RYm7TedETX/6aon4Lm1+6ZqpfonxSizFGYmGWsxFxYkAhS4+4nQCAAA= X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-5.tower-31.messagelabs.com!1505210643!111127297!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 22072 invoked from network); 12 Sep 2017 10:04:04 -0000 Received: from usa-sjc-mx-foss1.foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-5.tower-31.messagelabs.com with SMTP; 12 Sep 2017 10:04:04 -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 A52FA1682; Tue, 12 Sep 2017 03:04:03 -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 B704D3F578; Tue, 12 Sep 2017 03:04:02 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Tue, 12 Sep 2017 11:03:26 +0100 Message-Id: <20170912100330.2168-21-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170912100330.2168-1-julien.grall@arm.com> References: <20170912100330.2168-1-julien.grall@arm.com> Cc: andre.przywara@arm.com, Julien Grall , sstabellini@kernel.org Subject: [Xen-devel] [PATCH v2 20/24] 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 Reviewed-by: Stefano Stabellini --- Changes in v2: - Add Andre's reviewed-by --- 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 b3286b4a89..3379d29f8a 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",