From patchwork Fri May 27 16:06:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 68773 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp172898qge; Fri, 27 May 2016 09:07:47 -0700 (PDT) X-Received: by 10.237.47.67 with SMTP id l61mr7068902qtd.89.1464365267867; Fri, 27 May 2016 09:07:47 -0700 (PDT) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id e82si16852304qhd.123.2016.05.27.09.07.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 May 2016 09:07:47 -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 1b6KHT-0000dk-Ql; Fri, 27 May 2016 16:06:35 +0000 Received: from mail6.bemta6.messagelabs.com ([85.158.143.247]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6KHS-0000dQ-R6 for xen-devel@lists.xen.org; Fri, 27 May 2016 16:06:34 +0000 Received: from [85.158.143.35] by server-3.bemta-6.messagelabs.com id 2D/42-25713-A8078475; Fri, 27 May 2016 16:06:34 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKLMWRWlGSWpSXmKPExsVysyfVTbezwCP c4NwFA4slHxezODB6HN39mymAMYo1My8pvyKBNeP2qi3sBTu4KyYfO8TcwLiCo4uRi0NIYCOj xMF3r5kgnNOMEg397SxdjJwcbAKaEnc+f2ICsUUEpCWufb7MCFLELLCASWLW0ttgCWGBAImN3 3qZQWwWAVWJjauagWwODl4BF4l5f9xAwhICchInj01mBQlzCrhKzHitAhIWAqrYuLCPZQIj9w JGhlWM6sWpRWWpRbpGeklFmekZJbmJmTm6hgZmermpxcWJ6ak5iUnFesn5uZsYgd5lAIIdjMv +Oh1ilORgUhLlfZ/qES7El5SfUpmRWJwRX1Sak1p8iFGGg0NJgjc5HygnWJSanlqRlpkDDDOY tAQHj5IIbz1Imre4IDG3ODMdInWKUVFKnPcwSEIAJJFRmgfXBgvtS4yyUsK8jECHCPEUpBblZ pagyr9iFOdgVBLmnQoyhSczrwRu+iugxUxAixewgC0uSURISTUwRjlunZSX8DrpRn5Qz5nIsM 8n/kVucjflPd833eX1SX12c88V8m6pPR2tO9jN5rzRiz9sGdDtW+Hk+Gjj6YQGj6TlkSkKvrG JHB/va9+eo3Hzd588d4avToWWrsKx80XajaKeUTKbnB9u7OyYvYbZc+6HyTcXRC6amzLPfc19 7YxdMxfeSLFXYinOSDTUYi4qTgQAAeI+C2gCAAA= X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-16.tower-21.messagelabs.com!1464365193!11828848!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.46; banners=-,-,- X-VirusChecked: Checked Received: (qmail 64412 invoked from network); 27 May 2016 16:06:33 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-16.tower-21.messagelabs.com with SMTP; 27 May 2016 16:06:33 -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 66E5A5F; Fri, 27 May 2016 09:06:58 -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 0A9023F246; Fri, 27 May 2016 09:06:30 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Fri, 27 May 2016 17:06:21 +0100 Message-Id: <1464365181-15493-3-git-send-email-julien.grall@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1464365181-15493-1-git-send-email-julien.grall@arm.com> References: <1464365181-15493-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, Jan Beulich Subject: [Xen-devel] [for-4.7 v3 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 Acked-by: Stefano Stabellini Acked-by: Jan Beulich --- Changes in v3: - Update comment - Add Stefano's Jan's ack Changes in v2: - s/Device_nGnRE/Device-nGnRE/ to match the spec - Update the comment to mention the name for ARMv7. --- xen/include/public/memory.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xen/include/public/memory.h b/xen/include/public/memory.h index 5f7e0d2..29ec571 100644 --- a/xen/include/public/memory.h +++ b/xen/include/public/memory.h @@ -220,7 +220,11 @@ 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 + ARM only; the region is mapped in + Stage-2 using the memory attribute + "Device-nGnRE" (previously named + "Device" on ARMv7) */ /* ` } */ /*