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: 9135209 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DB2D26075C for ; Wed, 25 May 2016 11:43:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CDC5B282BB for ; Wed, 25 May 2016 11:43:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C2AE0282D4; Wed, 25 May 2016 11:43:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6FF03282BB for ; Wed, 25 May 2016 11:43:38 +0000 (UTC) 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" X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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. */ /* ` } */ /*