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 EDC64EB64D9 for ; Tue, 4 Jul 2023 18:28:54 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.558620.872884 (Exim 4.92) (envelope-from ) id 1qGklV-0007cr-5B; Tue, 04 Jul 2023 18:28:41 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 558620.872884; Tue, 04 Jul 2023 18:28:41 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qGklV-0007ck-1y; Tue, 04 Jul 2023 18:28:41 +0000 Received: by outflank-mailman (input) for mailman id 558620; Tue, 04 Jul 2023 18:28:40 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qGklU-0007ce-32 for xen-devel@lists.xenproject.org; Tue, 04 Jul 2023 18:28:40 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qGklT-0007dK-WB; Tue, 04 Jul 2023 18:28:39 +0000 Received: from 54-240-197-234.amazon.com ([54.240.197.234] helo=[192.168.9.70]) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qGklT-0007pY-Qy; Tue, 04 Jul 2023 18:28:39 +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=sl7a547exq3daUqVNlCI3Uw614+AwnEgFNAX9X2TPsg=; b=d7Sxl6veZYilboyrLc/Gck1Lzy 7bdwOysuD5nUcduFjZvQxUOKtN6fM4nmWRvlnuywbCeM+QRg3mfvATw+L2Yo03qF1hJ8i7Tyxg3bv kNTSZtXzRX9TVp/H0LwjzCdtLqCD+pGDgI97iOlJvQk5y7MHuPO4H7945sLeTojHK1ts=; Message-ID: Date: Tue, 4 Jul 2023 19:28:38 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [v2 3/4] xen/arm: Rework the code mapping Xen to avoid relying on the size of Xen Content-Language: en-US To: Michal Orzel , xen-devel@lists.xenproject.org Cc: Luca.Fancellu@arm.com, Henry.Wang@arm.com, Julien Grall References: <20230629201129.12934-1-julien@xen.org> <20230629201129.12934-4-julien@xen.org> From: Julien Grall In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, On 30/06/2023 07:56, Michal Orzel wrote: > > > On 29/06/2023 22:11, Julien Grall wrote: >> >> >> From: Julien Grall >> >> At the moment, the maximum size of Xen binary we can support is 2MB. >> This is what we reserved in the virtual address but also what all >> the code in Xen relies on as we only allocate one L3 page-table. >> >> When feature like UBSAN (will be enabled in a follow-up patch) and GCOV >> are enabled, the binary will be way over 2MB. >> >> The code is now reworked so it doesn't rely on a specific size but >> will instead look at the reversed size and compute the number of >> page-table to allocate/map. >> >> While at it, replace any reference to 4KB mappings with a more >> generic word because the page-size may change in the future. >> >> Also fix the typo s/tlb/tbl/ in code move in arm32/head.S > as well as in arm64 (can be done on commit) I have replaced "arm32/head.S" with "arm{32,64}/head.S". > >> >> Signed-off-by: Julien Grall > Reviewed-by: Michal Orzel Thanks! Cheers, -- Julien Grall