From patchwork Wed Jul 20 16:10:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 72458 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp66726qga; Wed, 20 Jul 2016 09:14:48 -0700 (PDT) X-Received: by 10.36.94.193 with SMTP id h184mr10394129itb.52.1469031288533; Wed, 20 Jul 2016 09:14:48 -0700 (PDT) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id e19si1619209iof.87.2016.07.20.09.14.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jul 2016 09:14:48 -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 1bPu5v-0007ZM-B8; Wed, 20 Jul 2016 16:11:35 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPu5u-0007YR-1G for xen-devel@lists.xen.org; Wed, 20 Jul 2016 16:11:34 +0000 Received: from [85.158.137.68] by server-7.bemta-3.messagelabs.com id 56/86-03271-5B2AF875; Wed, 20 Jul 2016 16:11:33 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCLMWRWlGSWpSXmKPExsVysyfVTXfLov5 wgyvzDC2WfFzM4sDocXT3b6YAxijWzLyk/IoE1oy7c7ezFexgrVj5ZydrA+Nmli5GLg4hgU2M Ei+PHmeHcE4zSlx99AjI4eRgE9CUuPP5ExOILSIgLXHt82VGkCJmgXZGieUb/7GAJIQFEiXmX T3NBmKzCKhKvGneARbnFXCR+HP/BFhcQkBO4uSxyawgNqeAq8T5kz8ZQWwhoJpNb78xT2DkXs DIsIpRozi1qCy1SNfQUi+pKDM9oyQ3MTNH19DAWC83tbg4MT01JzGpWC85P3cTI9DH9QwMjDs Yfx/3O8QoycGkJMqrKtobLsSXlJ9SmZFYnBFfVJqTWnyIUYaDQ0mCd/HC/nAhwaLU9NSKtMwc YLDBpCU4eJREeI+DpHmLCxJzizPTIVKnGHU5Fvy4vZZJiCUvPy9VSpx3G0iRAEhRRmke3AhY4 F9ilJUS5mVkYGAQ4ilILcrNLEGVf8UozsGoJMx7GGQKT2ZeCdymV0BHMAEdMUcA7IiSRISUVA NjS8Fb17P/pR8Z7fmS0/+pgFtig+as7To/2jyX9uS5Vxccma2jxjjv5HW3c849Fg210//KxqU 9unm/s80/JH5D0tS+uRquEzut3AqEHr+wubrj3k7XWSHV5lt+75R9olvVmyl7pmbjnV1XDxzo 60z2CrfW3ai1wPe2SKdvqf2twrNptvzhwueUWIozEg21mIuKEwE5kj/+dwIAAA== X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-10.tower-31.messagelabs.com!1469031092!50895360!1 X-Originating-IP: [217.140.101.70] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.77; banners=-,-,- X-VirusChecked: Checked Received: (qmail 61459 invoked from network); 20 Jul 2016 16:11:32 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-10.tower-31.messagelabs.com with SMTP; 20 Jul 2016 16:11:32 -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 983DEBB3; Wed, 20 Jul 2016 09:12:42 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.218.32]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EDC3E3F387; Wed, 20 Jul 2016 09:11:30 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Wed, 20 Jul 2016 17:10:49 +0100 Message-Id: <1469031064-23344-8-git-send-email-julien.grall@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1469031064-23344-1-git-send-email-julien.grall@arm.com> References: <1469031064-23344-1-git-send-email-julien.grall@arm.com> Cc: proskurin@sec.in.tum.de, Julien Grall , sstabellini@kernel.org, wei.chen@linaro.org, steve.capper@arm.com Subject: [Xen-devel] [PATCH 07/22] xen/arm: p2m: Use p2m_is_foreign in get_page_from_gfn to avoid open coding 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" No functional change. Signed-off-by: Julien Grall --- xen/include/asm-arm/p2m.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/asm-arm/p2m.h b/xen/include/asm-arm/p2m.h index 8fe78c1..dbbcefe 100644 --- a/xen/include/asm-arm/p2m.h +++ b/xen/include/asm-arm/p2m.h @@ -227,7 +227,7 @@ static inline struct page_info *get_page_from_gfn( * get_page won't work on foreign mapping because the page doesn't * belong to the current domain. */ - if ( p2mt == p2m_map_foreign ) + if ( p2m_is_foreign(p2mt) ) { struct domain *fdom = page_get_owner_and_reference(page); ASSERT(fdom != NULL);