From patchwork Mon Apr 7 09:14:23 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Fancellu X-Patchwork-Id: 14040032 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 16999C36010 for ; Mon, 7 Apr 2025 09:14:52 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.939426.1339508 (Exim 4.92) (envelope-from ) id 1u1iZ1-0003yM-GE; Mon, 07 Apr 2025 09:14:43 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 939426.1339508; Mon, 07 Apr 2025 09:14:43 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1u1iZ1-0003yF-Cz; Mon, 07 Apr 2025 09:14:43 +0000 Received: by outflank-mailman (input) for mailman id 939426; Mon, 07 Apr 2025 09:14:41 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1u1iYz-0003xw-TU for xen-devel@lists.xenproject.org; Mon, 07 Apr 2025 09:14:41 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-flk1.inumbo.com (Halon) with ESMTP id bb88d894-1390-11f0-9ffb-bf95429c2676; Mon, 07 Apr 2025 11:14:39 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F2FEA106F; Mon, 7 Apr 2025 02:14:39 -0700 (PDT) Received: from e125770.cambridge.arm.com (e125770.arm.com [10.1.199.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BECDB3F59E; Mon, 7 Apr 2025 02:14:37 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: bb88d894-1390-11f0-9ffb-bf95429c2676 From: Luca Fancellu To: xen-devel@lists.xenproject.org Cc: Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk Subject: [PATCH v2 0/7] First chunk for Arm R82 and MPU support Date: Mon, 7 Apr 2025 10:14:23 +0100 Message-Id: <20250407091430.2342709-1-luca.fancellu@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Hi all, This is the first chunk of work to support MPU and R82 on Xen, this serie reaches the early boot stages until setup_pagetables() which is not used for MPU but it is just to give an idea about which stage of the boot is reached. v2 changes for this serie: - rebased serie on the MPU skeleton that allow compilation - removed some patches already merged in the MPU skeleton Luca Fancellu (6): arm/mpu: Provide access to the MPU region from the C code arm/mpu: Introduce utility functions for the pr_t type arm/mpu: Provide a constructor for pr_t type arm/mpu: Introduce MPU memory mapping flags arm/mpu: Implement early_fdt_map support in MPU systems arm/mpu: Implement setup_mpu for MPU system Penny Zheng (1): arm/mpu: Introduce MPU memory region map structure xen/arch/arm/include/asm/arm64/mpu.h | 57 ++++++ xen/arch/arm/include/asm/mpu.h | 50 ++++++ xen/arch/arm/include/asm/mpu/mm.h | 27 +++ xen/arch/arm/include/asm/page.h | 25 +++ xen/arch/arm/mpu/mm.c | 253 ++++++++++++++++++++++++++- xen/arch/arm/mpu/setup.c | 54 +++++- 6 files changed, 463 insertions(+), 3 deletions(-) create mode 100644 xen/arch/arm/include/asm/arm64/mpu.h