[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 5/5] xen/arm: map static memory on demand


  • To: "Orzel, Michal" <michal.orzel@xxxxxxx>
  • From: Hari Limaye <Hari.Limaye@xxxxxxx>
  • Date: Wed, 27 Aug 2025 12:31:07 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 4.158.2.129) smtp.rcpttodomain=amd.com smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=2; 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=0auZJzDScxk9QiMWFC6lY8/ipGiWJgaq1IQH/u4StOU=; b=NtrMjREC2gn6ZjwGGFz53MistWIyq6URaLtByBO1iwzYZzs41rmhNUIf9i9XU+/VlymqbsQT1o6uP9MD4qqdqAXgnuMX1FsPjp1KZ6tT5kOCuS8qAGeK+9HgimSgvvXnVVffFW9H2RsZnUN/pOoTjogbNOCGQn4vHG5VJOUXXB8KM+npjyqqqq3iJTpfdgwxkQ8bXLeLS+99D5yOPABbLrwDRpEJ5Bf4Iai/u+X2Il7lHbWIcU0Afyzg75t4Fs6gcExfWdEO/7zlBI6Pzyd+siYJzHv/t1IVaEbalKhsjaE8+ZmO0bSwlZy0xiaMe2s3TrKNUcdKozEH4sWsvK4rnw==
  • 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=0auZJzDScxk9QiMWFC6lY8/ipGiWJgaq1IQH/u4StOU=; b=w4pyWlqkvaKcRbCXYwGU1Y+2yi+CoqAYiA0dH5I5sUPe82Sj9WZVoejeTb/JDBfBOPBeP8x6NUXmijBW205ZgKB2+iSG+kLXPkRVqr/YmSDsLw5lO44wnfQzca57yMO2M0xFAUzvHkf9XNtTfev/0ijQRc3wuNcw5gfFhB+TF5QCTkolrhQo5L0XvCanRrbc4jt37hBIXh5K1VTLvI8xnVhYlVhdNEqso/xjSEaUyPykbeeEZI+zazYEDZYtKImiJetRbmKaF2Duxxy29NNbZizbC/oOoj6VwyPIH2ePm8ibKsqqbThTJglN8SEMM/79Vb76p5cZpOu/qFWYR0rn9A==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=oreq64/PJO3gD5HD4KcNWBlJVzSm/pXoZ7mNCNcQBv0Kaw1Npp55W0U5Q7jAfu8wrdZM5w6ZNHEQEqaaPUGxYRrbX5E2BLK0JHMsIrCp4qED6SSc12/KFuzfvgEHeL5Aq8Uj2rB40iJth29CBxg8YmlGGhvCUjcc0gLJUYQsMupWAMjb4TshpAK9qJa1AMuiCTSlcCtUvuVzIyLcWNQCqwt/vl0aM9H4IMSR8mKcH/L7uQE1FKGN91p+Qd/xkH6YIyGcEY2YomRcgcGQEbrZd6fmON8TI+LkiNICPHVebdwmM4K9q092ifEAR8Co2ytAa2vyQa+TRUv0NryinaBmvw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mmNo+i8XDnTxoqUVa1TG0SwnhJzhlofS7uGaF91WhYy7v5EISXlK2XH/OUhufVmb+4TW5MIGJkb82RmLeuPgz8BUs8aXu8GQGL4BVw115rXy9TvPXbFHvijR8+CVGN88aaM7gEKVvKwh5oNcPUvleuk/1O4aA749aoQHFc9I1et+jz6FW4xX9Pyboia1cXpKd4ka9YU6WElY4ERNYcsutpE/YnCUHWAy13f8HgKu6Lwhg0t88usf/EVdE4KInJBdomWEt5CcEGVFzLiI9p+oHZCNEonwwahEz4t+S50SzTnedky9pTw9i19nbPiuKz5YWkU6mSaCw65BgSyMPBn84g==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • 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 12:31:58 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Thread-index: AQHcEzlqos7dHoCXP0W7s7Rjj8N/SbR2dmwA
  • Thread-topic: [PATCH 5/5] xen/arm: map static memory on demand

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?

Many thanks,
Hari


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.