[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 5/5] xen/arm: map static memory on demand
- To: Hari Limaye <Hari.Limaye@xxxxxxx>
- From: "Orzel, Michal" <michal.orzel@xxxxxxx>
- Date: Wed, 27 Aug 2025 18:07:06 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=arm.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=NLHpF2zNeYT9+317lnCMJPv7NbijK5Wkd9pq9dYrJkw=; b=UoA9T85LjcTC0s8EeoqZDkEHgXnVaC77U+5TeiP5nzJ7NL2AhncEa/HnOX6W7KmDf/getLJ854idJwy96xovwYWmJjNBBx5skdSY7NiINjZ7imBIkBLZA2t14+u7/WaVZVnyllRarmdqMWkENpnBURZ/jrHW/JpYz4S2HCPXd90dbLT0Yn/Pm8O16f4rHZCZwOHxsIG+5yFFwtL7rdv2mFhYGmRY8TB4gFEiU0mMHESv7GDsVIuXlvBrK6Thr38YdIy0D9s7ARdyjzEHVQTDpObbyPUoUTdU0N3+2GpwhRZMSaMh3XvtIYAyKAoLZ43K1tth+4hnkAVshWGe/IcooQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=X3BGrh9Ve32atBDytrATuoNpuuKvgxOH11rQarV5Fo1PcNc3NgLff1JL5WM1zVDF6tM9WeHntnvb20vKVaeMzE1K3I3x7K3+KDpQIDHKQF7JyWIJRUcBLoJCi+k+xeeiLXkRcidnEtAWs902sneJ2iIdJiw5qaaPpcgmB5tEE4FWY9Br5fXDjiMhf/RghdQgDIAoW0E6fzPx2m/EeDbxLee8MF+xWlA1o2SpOp1Hz7h4B9nMG+rL+6lj/UDKtkCoNmGm9t9fPYivniC3+jOPsNnUtMyqF43XqC7dRUiCDnDD34+3jy98p+GzD3MwlidnLKfuaAjdhQaAUPV6CD6xmw==
- Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "Luca Fancellu" <Luca.Fancellu@xxxxxxx>, Penny Zheng <Penny.Zheng@xxxxxxx>, "Stefano Stabellini" <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, "Bertrand Marquis" <Bertrand.Marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Chen <Wei.Chen@xxxxxxx>
- Delivery-date: Wed, 27 Aug 2025 16:07:23 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 27/08/2025 14:31, Hari Limaye wrote:
> Hi Michal,
>
>> On 22 Aug 2025, at 08:50, Orzel, Michal <michal.orzel@xxxxxxx> wrote:
>>
>>
>>
>> On 30/07/2025 10:45, Hari Limaye wrote:
>>> From: Penny Zheng <Penny.Zheng@xxxxxxx>
>>>
>>> In the function `init_staticmem_pages` we need to have mapped static
>>> memory banks for initialization. Unlike on an MMU system, we cannot map
>>> the entire RAM on an MPU system as we have a limited number of MPU
>>> memory regions. To solve this, transiently map the static memory banks
>>> for initialization.
>> How does this correspond to Arm32 MPU (R52), where all of the RAM will be
>> covered? I don't think 'transient' mappings will be needed there but all of
>> your
>> work targets common (i.e. not only Arm64) MPU code.
>>
>> ~Michal
>>
>
> Hm fair point - when this series was submitted to the ML, I had no knowledge
> of the intention for all of the RAM to be mapped on Arm32 MPU systems and
> imagined that things would be more aligned here.
>
> Are happy for this to remain common for now? Or would you prefer it to be
> split off?
Let it be common for now. We can revisit it after the release to align on the
final approach.
~Michal
|