|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v6 11/11] xen/arm64: add setup_fixmap and remove_identity_mapping for MPU
Hi Penny, On 07/11/2022 08:13, Penny Zheng wrote: -----Original Message----- From: Julien Grall <julien@xxxxxxx> Sent: Monday, November 7, 2022 5:02 AM To: Wei Chen <Wei.Chen@xxxxxxx>; xen-devel@xxxxxxxxxxxxxxxxxxxx Cc: nd <nd@xxxxxxx>; Penny Zheng <Penny.Zheng@xxxxxxx>; Stefano Stabellini <sstabellini@xxxxxxxxxx>; Bertrand Marquis <Bertrand.Marquis@xxxxxxx>; Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx> Subject: Re: [PATCH v6 11/11] xen/arm64: add setup_fixmap and remove_identity_mapping for MPU Hi, On 04/11/2022 10:07, Wei Chen wrote:From: Penny Zheng <penny.zheng@xxxxxxx> setup_fixmap and remove_identity_mapping are two functions that are used in Xen boot-time code flow. We implement these two functions for MPU system, in this case, the code flow in head.S doesn't need to use #ifdef to gate MPU/MMU code. In MMU system, setup_fixmap is used for Xen to map some essentail data or devices in boot-time. For MPU system, we still have this requirement, we map the early UART to MPU protection region when earlyprintk is enabled. This also means PRINT can't be used after turning on MPU but before setup_fixmap. This restriction is the same as MMU system. For remove_identity_mapping, we just need an empty function to make head.S code flow happy. Signed-off-by: Wei Chen <wei.chen@xxxxxxx> Signed-off-by: Penny Zheng <penny.zheng@xxxxxxx> --- xen/arch/arm/arm64/head_mpu.S | 49 +++++++++++++++++++ .../arm/include/asm/platforms/fvp_baser.h | 4 ++ 2 files changed, 53 insertions(+) diff --git a/xen/arch/arm/arm64/head_mpu.S b/xen/arch/arm/arm64/head_mpu.S index 5a1b03e293..336c0a630f100644 The fact that the fixmap entry is not created in create_page_tables() (now prepare_early_mappings()). Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |