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 4B090D3000E for ; Fri, 18 Oct 2024 14:09:28 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.821979.1235974 (Exim 4.92) (envelope-from ) id 1t1nf4-0002f0-N4; Fri, 18 Oct 2024 14:09:02 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 821979.1235974; Fri, 18 Oct 2024 14:09:02 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t1nf4-0002et-JG; Fri, 18 Oct 2024 14:09:02 +0000 Received: by outflank-mailman (input) for mailman id 821979; Fri, 18 Oct 2024 14:09:01 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t1nf3-0002el-1g for xen-devel@lists.xenproject.org; Fri, 18 Oct 2024 14:09:01 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t1nf2-0005iv-Ne; Fri, 18 Oct 2024 14:09:00 +0000 Received: from [2a02:8012:3a1:0:ecee:6c05:256c:cbd3] by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1t1nf2-0002OW-HS; Fri, 18 Oct 2024 14:09:00 +0000 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" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=bImrkhUb8P5oWUkPjvbqEfY7hYNffhxA+JC4XOOsqDs=; b=mPbrXLOL98OWQlGSeYVGCYcyDx kpEhTlo6eb7IQLvpbwPuAWxGoiV1iw9Z5OB1mHhvl0BhL02JrLDq7pW4tZ3vfEJZSKxBCUGSekheJ OWa9vmEQS9YLRKXcNxhbf2iIm/R8vJlPs3YWSJFlM+s7fJG8N/VI56HdHyYXNW+vm5hA=; Message-ID: Date: Fri, 18 Oct 2024 15:08:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 2/6] xen/arm: mpu: Introduce choice between MMU and MPU Content-Language: en-GB To: Ayan Kumar Halder , xen-devel@lists.xenproject.org Cc: Andrew Cooper , Jan Beulich , Stefano Stabellini , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk References: <20241010140351.309922-1-ayan.kumar.halder@amd.com> <20241010140351.309922-3-ayan.kumar.halder@amd.com> From: Julien Grall In-Reply-To: <20241010140351.309922-3-ayan.kumar.halder@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, On 10/10/2024 15:03, Ayan Kumar Halder wrote: > There are features in the forthcoming patches which are dependent on > MPU. For eg fixed start address. > Also, some of the Xen features (eg STATIC_MEMORY) will be selected > by the MPU configuration. > > Thus, this patch introduces a choice between MMU and MPU for the type > of memory management system. By default, MMU is selected. > MPU is now gated by UNSUPPORTED. > > Update SUPPORT.md to state that the support for MPU is experimental. > > Signed-off-by: Ayan Kumar Halder With one remark below: Acked-by: Julien Grall > --- > Changes from :- > > v1 - 1. Reworded the help messages. > 2. Updated Support.md. > > v2 - 1. Reworded the help message. > > SUPPORT.md | 1 + > xen/arch/arm/Kconfig | 17 ++++++++++++++++- > xen/arch/arm/platforms/Kconfig | 2 +- > 3 files changed, 18 insertions(+), 2 deletions(-) > > diff --git a/SUPPORT.md b/SUPPORT.md > index 23dd7e6424..3f6d788a43 100644 > --- a/SUPPORT.md > +++ b/SUPPORT.md > @@ -40,6 +40,7 @@ supported in this document. > > Status, Xen in AArch64 mode: Supported > Status, Xen in AArch32 mode: Tech Preview > + Status, Xen with MPU: Experimental Maybe mention Armv8-R? > Status, Cortex A57 r0p0-r1p1: Supported, not security supported > Status, Cortex A77 r0p0-r1p0: Supported, not security supported > > diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig > index 323c967361..ed92eb67cb 100644 > --- a/xen/arch/arm/Kconfig > +++ b/xen/arch/arm/Kconfig > @@ -58,10 +58,25 @@ config PADDR_BITS > default 40 if ARM_PA_BITS_40 > default 48 if ARM_64 > > +choice > + prompt "Memory management system" > + default MMU > + help > + User can choose between the different forms of memory management system. > + > config MMU > - def_bool y > + bool "MMU" > select HAS_PMAP > select HAS_VMAP > + help > + Select it if you plan to run Xen on A-profile Armv7+ > + > +config MPU > + bool "MPU" if UNSUPPORTED > + help > + Memory Protection Unit (MPU). Select if you plan to run Xen on ARMv8-R > + systems supporting EL2. (UNSUPPORTED) > +endchoice > > source "arch/Kconfig" > > diff --git a/xen/arch/arm/platforms/Kconfig b/xen/arch/arm/platforms/Kconfig > index 76f7e76b1b..02322c259c 100644 > --- a/xen/arch/arm/platforms/Kconfig > +++ b/xen/arch/arm/platforms/Kconfig > @@ -1,5 +1,5 @@ > choice > - prompt "Platform Support" > + prompt "Platform Support" if MMU > default ALL_PLAT > help > Choose which hardware platform to enable in Xen. -- Julien Grall