From patchwork Fri Jun 24 09:11:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 12894217 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 B7E9FCCA47F for ; Fri, 24 Jun 2022 09:12:12 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.355320.582904 (Exim 4.92) (envelope-from ) id 1o4fLz-0003Fg-UB; Fri, 24 Jun 2022 09:11:51 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 355320.582904; Fri, 24 Jun 2022 09:11:51 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1o4fLz-0003FZ-RI; Fri, 24 Jun 2022 09:11:51 +0000 Received: by outflank-mailman (input) for mailman id 355320; Fri, 24 Jun 2022 09:11:50 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1o4fLy-0003FN-EM for xen-devel@lists.xenproject.org; Fri, 24 Jun 2022 09:11:50 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1o4fLx-0001yy-L3; Fri, 24 Jun 2022 09:11:49 +0000 Received: from 54-240-197-232.amazon.com ([54.240.197.232] helo=dev-dsk-jgrall-1b-035652ec.eu-west-1.amazon.com) by xenbits.xenproject.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o4fLx-0005kh-Bd; Fri, 24 Jun 2022 09:11:49 +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:MIME-Version:Message-Id:Date: Subject:Cc:To:From; bh=LUUTzfKjE4shgj9dPHcr74fVufq6DTQHJU2cvaX2OrE=; b=RIq7QV NEy1DfvZqLmWWUHFIGX3CrIQTQEipBgRkJD49+r7U1FMkrptrYmsEqd3QNLkDy2t2988R4DO5qm05 /qzI1XOUha9PMGmqDBn6wUqTMlz2QqefCQUI+XmEo2PJJcgP0afrUruSoBYnxa9i+xQvSSjk8Vnq9 zeFEkSEBQe0=; From: Julien Grall To: xen-devel@lists.xenproject.org Cc: julien@xen.org, Julien Grall , Stefano Stabellini , Bertrand Marquis , Volodymyr Babchuk , Konrad Rzeszutek Wilk , Ross Lagerwall , Andrew Cooper , George Dunlap , Jan Beulich , Wei Liu , =?utf-8?q?Roger_Pau_Monn=C3=A9?= Subject: [PATCH 0/7] xen/arm: mm: Bunch of clean-ups Date: Fri, 24 Jun 2022 10:11:39 +0100 Message-Id: <20220624091146.35716-1-julien@xen.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 From: Julien Grall Hi all, This series is a collection of patches to clean-up the MM subsystem I have done in preparation for the next revision of "xen/arm: Don't switch TTBR while the MMU is on" [1]. Cheers, [1] https://lore.kernel.org/all/20220309112048.17377-1-julien@xen.org/ Julien Grall (7): xen/arm: Remove most of the *_VIRT_END defines xen/arm32: head.S: Introduce a macro to load the physical address of a symbol xen/arm: head: Add missing isb after writing to SCTLR_EL2/HSCTLR xen/arm: mm: Add more ASSERT() in {destroy, modify}_xen_mappings() xen/arm32: mm: Consolidate the domheap mappings initialization xen/arm: mm: Move domain_{,un}map_* helpers in a separate file xen/arm: mm: Reduce the area that xen_second covers xen/arch/arm/Kconfig | 1 + xen/arch/arm/Makefile | 1 + xen/arch/arm/arm32/head.S | 24 +-- xen/arch/arm/arm64/head.S | 1 + xen/arch/arm/domain_page.c | 193 +++++++++++++++++++++++ xen/arch/arm/include/asm/arm32/mm.h | 8 + xen/arch/arm/include/asm/config.h | 19 +-- xen/arch/arm/include/asm/lpae.h | 17 ++ xen/arch/arm/livepatch.c | 2 +- xen/arch/arm/mm.c | 231 ++++------------------------ xen/arch/arm/setup.c | 21 ++- xen/arch/x86/Kconfig | 1 + xen/arch/x86/include/asm/config.h | 1 - xen/common/Kconfig | 3 + 14 files changed, 297 insertions(+), 226 deletions(-) create mode 100644 xen/arch/arm/domain_page.c