From patchwork Wed May 25 11:41:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 68578 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp1161505qge; Wed, 25 May 2016 04:42:57 -0700 (PDT) X-Received: by 10.141.42.133 with SMTP id t127mr3103193qhe.12.1464176577021; Wed, 25 May 2016 04:42:57 -0700 (PDT) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id y65si7432272qkc.228.2016.05.25.04.42.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 May 2016 04:42:56 -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 1b5XBv-0001wL-Tq; Wed, 25 May 2016 11:41: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 1b5XBu-0001vs-8Y for xen-devel@lists.xen.org; Wed, 25 May 2016 11:41:34 +0000 Received: from [85.158.137.68] by server-4.bemta-3.messagelabs.com id 9B/BA-15606-D6F85475; Wed, 25 May 2016 11:41:33 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGLMWRWlGSWpSXmKPExsVysyfVTTen3zX coOOMhcWSj4tZHBg9ju7+zRTAGMWamZeUX5HAmvG0ZS9LwUaOivdzvjI1MM5h62Lk5BAS2Mgo cbyXsYuRC8g+zSjRdGsbE0iCTUBT4s7nT2C2iIC0xLXPl8GKmAVeMUq0TF/CApIQFvCVmLFlA lCCg4NFQFWif1sUSJhXwEVi/cObrCC2hICcxMljk8FsTgFXiaO3zkAtdpF4++cF8wRG7gWMDK sYNYpTi8pSi3QNzfSSijLTM0pyEzNzdA0NjPVyU4uLE9NTcxKTivWS83M3MQL9ywAEOxhXbfc 8xCjJwaQkyutT5xouxJeUn1KZkVicEV9UmpNafIhRhoNDSYLXpg8oJ1iUmp5akZaZAww0mLQE B4+SCG8ASJq3uCAxtzgzHSJ1ilFRSpzXEiQhAJLIKM2Da4MF9yVGWSlhXkagQ4R4ClKLcjNLU OVfMYpzMCoJ8xqDTOHJzCuBmw4MQKCbRXj9vziDLC5JREhJNTB6S0WYndbYIjd3aQXPbuNJi3 2eW3+60XctcM/5F59vHbvNuM5DrDrjcdJexoDH36PznvOtSa5fUCRoV7j7d+RvY60DnQq32pl 8I0UmKz1Lf9RSnVfBu3v/u5g2K7eSZZ69rNH3+A0m/fczVEnOMSm9s/Kntsmy+6F/04M8jgmK vbtz8XfwhZdKLMUZiYZazEXFiQCZWiIoaQIAAA== X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-6.tower-31.messagelabs.com!1464176492!15773266!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.34; banners=-,-,- X-VirusChecked: Checked Received: (qmail 39050 invoked from network); 25 May 2016 11:41:32 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-6.tower-31.messagelabs.com with SMTP; 25 May 2016 11:41: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 ACC473C; Wed, 25 May 2016 04:41:55 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.215.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 64C5C3F218; Wed, 25 May 2016 04:41:30 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Wed, 25 May 2016 12:41:19 +0100 Message-Id: <1464176479-14669-3-git-send-email-julien.grall@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1464176479-14669-1-git-send-email-julien.grall@arm.com> References: <1464176479-14669-1-git-send-email-julien.grall@arm.com> Cc: sstabellini@kernel.org, wei.liu2@citrix.com, andrew.cooper3@citrix.com, Ian.Jackson@eu.citrix.com, george.dunlap@citrix.com, tim@xen.org, Julien Grall , shannon.zhao@linaro.org Subject: [Xen-devel] [for-4.7 2/2] xen/arm: Document the behavior of XENMAPSPACE_dev_mmio 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" Currently, XENMAPSPACE_dev_mmio maps MMIO regions using one of the most restrictive memory attribute (Device_nGnRE). Signed-off-by: Julien Grall --- xen/include/public/memory.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xen/include/public/memory.h b/xen/include/public/memory.h index b023046..ece72d2 100644 --- a/xen/include/public/memory.h +++ b/xen/include/public/memory.h @@ -220,7 +220,10 @@ DEFINE_XEN_GUEST_HANDLE(xen_machphys_mapping_t); #define XENMAPSPACE_gmfn_range 3 /* GMFN range, XENMEM_add_to_physmap only. */ #define XENMAPSPACE_gmfn_foreign 4 /* GMFN from another dom, * XENMEM_add_to_physmap_batch only. */ -#define XENMAPSPACE_dev_mmio 5 /* device mmio region */ +#define XENMAPSPACE_dev_mmio 5 /* device mmio region + On ARM, the region will be mapped + in stage-2 using the memory attribute + Device_nGnRE. */ /* ` } */ /*