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

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


  • To: Julien Grall <julien@xxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Fri, 29 Aug 2025 07:28:31 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 4.158.2.129) smtp.rcpttodomain=xen.org 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=9d+LnO75aiLEZm6n7AaGsqYnxJQtF2jybGmQaNj3WhE=; b=KvMEna1U3nRJsHw4jawLT6nYryI/1o6vyGiyzBlLQ2NjrJrJI97YJyHdU1dnHheJn7SBoQWNOOKuF59F087JAlcm3RrVqNERoN1f7xyp8yAOZV3wXr2gspVSWkyNYeCDQQyIzugig47blc9OwJYkXk+TcGDgjaG0aQi5H32WQBgjY787WvHmj9jtaUBaXGN0KELEn2Ja1IJGE8CntEjMKivuESR35of/xVj8P2D0Cty0Lq0mmh5F3eaBc2l52U0wRH1bK6LCwZKaJh3GAXg1fNheOBrro8R2wIOYxge/ktS2ylrz/rS2Lb7rI1kgFPWhavqkyrmX4zAQkIT7aR+xLw==
  • 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=9d+LnO75aiLEZm6n7AaGsqYnxJQtF2jybGmQaNj3WhE=; b=ow8mShJfmD7LWmo8p5DleBGMZOTiW9NyWFy1Ofx/XSRXyw/CnIIg3CelB7afkcvr16OSiM3fRuohiCA5n1IxDqAdPzneiGc2hOMM80NUPEV1C7YEQTem4SWX4Vj7xCUQOE1RzDJDFJhFWaOeyrsaq7YEoFDv4GQa+YbS7pig6NCQMalgcE8kC9oXGzlME1s0VyJOEAwHZmTw1OneaIpwzP1r7q7XfpwSq/41ThpiMMl/xOSyS8QfF+vWcw4YUJuOJZPG/ADVLeDkS7Ud/5IlWhsxwlLK23SD3/+Vi2Sr0oN1+ssSCI6fXaoVY4EH37q7KbeRfXcYCfVScJUacdLFyg==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=rdnMa1Y6gJ9VcwXuMaonpi15egv4qwTRTmUA+JyjdpwSCiAqcM1N7+XqrQPgaoQWJQUhihje2MjyMJwzsKbFXUUladbFuG9MlYhmT6H01ulcC8Q/K6vqQtSvrc3IB1hgvHfFl+y6tHk4j13QgM/b6wCcDffL8wZz2Jgmq8fm21+fXx+UL94mngYb9emEeuetD5fiDljTmugxRN3oAL0bhjC3SO8T6SkLrgEL5htZLtHSbyESwis2I5eBxJ9fMXK5eB3fVTRgRZz6dHpDtPdIDGQSnn0J4i2aor5mD3lkyAOwD9JnSVIUaJbDHWS9EstYyG79JM9MLO4SrPRemk4Eog==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=GcWFYhUtokCH4jt+mV9WZCYoS21wZrVCxJNhsm70psZHK19Y/Wh627OC43c+qrumNJV89ZP4X4Dj/ZZ+DTtaF8wdvfxLUZ1/wQHcjtq809rMhjzYv8zLdf0W+Eno8rnV8S/TpSomqdqqSDmqtz5UObo92Akg82koXx+1rjwIof9/zDIpK9SYBQODIoPbvCFypoUU+QgLxUKYUdradziT8NqyuRx5JSaxuA0eti8PZBe+aRzB3v/7YgB1O/k8+Zjy1LAvzjOvqS5qYPalruJ1WQxE8h9JXqI0i3R4BxGaVbM3YVU4HG+MVUcyvjDnjr14FhqSDIGT4kOLrd4dphCXbQ==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Hari Limaye <Hari.Limaye@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Penny Zheng <Penny.Zheng@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Michal Orzel <michal.orzel@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: Fri, 29 Aug 2025 07:29:17 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Thread-index: AQHcGLWqZ0Mx4e+sDU+SZKlpnxj7ELR5O3kA
  • Thread-topic: [PATCH v3 5/5] xen/arm: map static memory on demand

Hi Julien,

> On 29 Aug 2025, at 08:22, Julien Grall <julien@xxxxxxx> wrote:
> 
> Hi Hari,
> 
> On 28/08/2025 12:12, 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
> 
> Even on the MMU system we don't always map the full RAM (for instance on 
> arm32). This is why we have infrastructure like map_domain_page() (Temporary 
> mapping) and map_domain_page_global() (more permanent).
> 
> 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.
> 
> I am guessing you implemented the helper because in 
> unmap_staticmem_pages_to_xen(), we are calling scrub_one_page(). This will be 
> using map_domain_page() and unmap_domain_page(). I am a bit confused why we 
> end up with brand new helpers rather than implementation map_domain_page() 
> and unmap_domain_page()?

yes I agree, scrub_one_page is already using {un}map_domain_page(), we will 
investigate about it.

Cheers,
Luca


 


Rackspace

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