From nobody Tue Nov 11 10:46:18 2025 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1565137462; cv=none; d=zoho.com; s=zohoarc; b=DSk4PtTEbUVcEKwIieRXhQ6LNDVoP5u5dZJEI1r67f405VzWotXFET4xISHy6Mo+oQ/TM+lmI2UFEH5aO8I6lzRp0pUmDRywpGyy5+XCbXGjSvjcOxHHnnnJf+kw/eBJzJGq+Nba8rSLnz2fKkemC3HZNpyHRhdh0hs0FLB+204= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565137462; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=PPSwb3A2a3LfMQpaHSyGYrAs5dQ+XHanEP3PhKBEn0A=; b=noTb2vZZU9PeKy+pWcv9xTrP/7DNJNe/8vhH6UITBp83/JAK/cx3mLh8vUpfKjxVZ/nKbigZljETBB+dmZVEBnN9nttYFMOFPydSdoctn/6VLO3rk3XdaukQUcL5mECPxolBpAQ/oYPRvTNII+CfbDqBp9/ykRsnt6/IVMIGv4U= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1565137462899744.7094958817823; Tue, 6 Aug 2019 17:24:22 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hv9jX-0004do-7Y; Wed, 07 Aug 2019 00:23:15 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hv9jW-0004dX-49 for xen-devel@lists.xenproject.org; Wed, 07 Aug 2019 00:23:14 +0000 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 8a9f5071-b8a9-11e9-8980-bc764e045a96; Wed, 07 Aug 2019 00:23:12 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.xilinx.com (c-67-164-102-47.hsd1.ca.comcast.net [67.164.102.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 38E33214C6; Wed, 7 Aug 2019 00:23:12 +0000 (UTC) X-Inumbo-ID: 8a9f5071-b8a9-11e9-8980-bc764e045a96 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565137392; bh=jDipdn+4VUYW2qZ4ApT2mSbJxsiNklXhSAwqKIj+xQA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yUnkcD3+V5WHqogYv3QNC6vpxa1WpIM2Gs0r7tKjsSz25Zf0Mxj7I1RTzk/wAG61O r33G3Yjo8WopagOwTTdqArqeMJdkGJTT9mBKSnKqOa5qldtD5/aDTm8itSeM7Z0n0D h3wvKfrSPdjAHfi0C3ibXUctEEViDU/SQ2W2Dkh8= From: Stefano Stabellini To: xen-devel@lists.xenproject.org Date: Tue, 6 Aug 2019 17:23:06 -0700 Message-Id: <20190807002311.9906-1-sstabellini@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Subject: [Xen-devel] [PATCH v4 1/6] xen/arm: introduce p2m_is_mmio X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , julien.grall@arm.com, sstabellini@kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Add a p2m_is_mmio macro for easy checkings. Signed-off-by: Stefano Stabellini Acked-by: Julien Grall --- xen/include/asm-arm/p2m.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xen/include/asm-arm/p2m.h b/xen/include/asm-arm/p2m.h index 03f2ee75c1..31902317da 100644 --- a/xen/include/asm-arm/p2m.h +++ b/xen/include/asm-arm/p2m.h @@ -132,6 +132,11 @@ typedef enum { #define P2M_RAM_TYPES (p2m_to_mask(p2m_ram_rw) | \ p2m_to_mask(p2m_ram_ro)) =20 +/* MMIO types */ +#define P2M_MMIO_TYPES (p2m_to_mask(p2m_mmio_direct_dev) | \ + p2m_to_mask(p2m_mmio_direct_nc) | \ + p2m_to_mask(p2m_mmio_direct_c)) + /* Grant mapping types, which map to a real frame in another VM */ #define P2M_GRANT_TYPES (p2m_to_mask(p2m_grant_map_rw) | \ p2m_to_mask(p2m_grant_map_ro)) @@ -146,6 +151,7 @@ typedef enum { #define p2m_is_any_ram(_t) (p2m_to_mask(_t) & \ (P2M_RAM_TYPES | P2M_GRANT_TYPES | \ P2M_FOREIGN_TYPES)) +#define p2m_is_mmio(_t) (p2m_to_mask(_t) & P2M_MMIO_TYPES) =20 /* All common type definitions should live ahead of this inclusion. */ #ifdef _XEN_P2M_COMMON_H --=20 2.17.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel