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

Re: [ImageBuilder][PATCH] uboot-script-gen: Add support for specifying domain P2M pool size


  • To: "Halder, Ayan Kumar" <ayankuma@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Oleksandr Tyshchenko <Oleksandr_Tyshchenko@xxxxxxxx>
  • Date: Wed, 21 Jan 2026 10:12:45 +0000
  • Accept-language: en-US, ru-RU
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • 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=5Jjdh5X98Iwpaq5E6u5s/W4d3SPNINX+DlilZ/kV/7Y=; b=JNyxerMe9wQWlgVQ/xLknhFnQCwu40Cc9EOcnX0cF4gdMvF/vnkwjESy5oMConrrBuBdN5Tt4ZPveOc7rwfQbBWNn6sfbOuOxARFS8sUpZFDPnN0N2aFX1NWs7k/XpePHc9p0sysF1DU0+gub8UWbFuDinMKoAlZ6sKvaZZgq2pkUEtayznZ5qiAAafr3n5UxNNqMnLeaZ8BnWqNXWCBgzGiHaAdcMUtiGyWvcF8q32iCT8J4dt/c6XD3fKJpNo+1XeNxrgIYh0+LuqyT4CQfFBDhV3iYXkN1GI5forphOE59zrFi0c1psn79QkHSwkY+ElmaFpoll0pRkAczdR94A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Vgl+hc4/FuBLefjGA53Ho2eunNAVWZiHGP0lUyXooh1+bTErtoBHHQsptc4sCkdaE06542bM88lLZ+4pmKFrE/Xrc2MmScrMHlKSw3zbDPVtj3tVvojuzuKsuvl4fJZINIoS6ZKM1pS2JWlFhOApqYtDztlcF8t8ix2yjxUPJpaJAt/FiLbvh/ZFUIslhtRhfoWiyCl3/rVf2k5KcoBX2iDF+YspkKrdui9rtqNPQAdyFtQGGy2nMEBhlpVdy8MsRlTYlG99IjFrYV8zhH0zlEnWi2ZaXtc22BopRAaX0anUuMm2LhpiFCIZ85oykwo+Y5zb8lRyNJzb04DwH/WE2A==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: Michal Orzel <michal.orzel@xxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxx>
  • Delivery-date: Wed, 21 Jan 2026 10:13:01 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHcijnrd0sgeuOEFUiPnDmCo+f/yrVbY7wAgAEEwYA=
  • Thread-topic: [ImageBuilder][PATCH] uboot-script-gen: Add support for specifying domain P2M pool size


On 20.01.26 20:39, Halder, Ayan Kumar wrote:
> Hi Oleksandr,

Hello Ayan

> 
> On 20/01/2026 18:23, Oleksandr Tyshchenko wrote:
>> The DOMU_P2M_MEM_MB configuration option is used to specify
>> the amount of megabytes of RAM used for the domain P2M pool.
>> It allows users to manually define the memory size reserved for
>> P2M structures in non-hardware domains, overriding the default
>> value calculated by Xen.
>>
>> Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@xxxxxxxx>
> 
> Reviewed-by: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>

thanks


> 
> with a question
> 
>> ---
>>   README.md                | 7 +++++++
>>   scripts/uboot-script-gen | 5 +++++
>>   2 files changed, 12 insertions(+)
>>
>> diff --git a/README.md b/README.md
>> index 983cbbc..c7ae98e 100644
>> --- a/README.md
>> +++ b/README.md
>> @@ -203,6 +203,13 @@ Where:
>>     NOTE that with this option, user needs to manually set 
>> xen,passthrough
>>     in xen.dtb.
>> +- DOMU_P2M_MEM_MB[number] is optional 32-bit integer specifying the 
>> amount
>> +  of megabytes of RAM used for the domain P2M pool. If not set, the 
>> default
>> +  size is calculated by Xen.
>> +  Note that the P2M pool is used to allocate pages for P2M structures 
>> for
>> +  non-hardware domains. For the hardware domain, P2M pages are allocated
>> +  directly from the heap.
>> +
>>   - DOMU_MEM[number] is the amount of memory for the VM in MB, default 
>> 512MB
>>   - DOMU_VCPUS[number] is the number of vcpus for the VM, default 1
>> diff --git a/scripts/uboot-script-gen b/scripts/uboot-script-gen
>> index d18ac55..0c86c2d 100755
>> --- a/scripts/uboot-script-gen
>> +++ b/scripts/uboot-script-gen
>> @@ -514,6 +514,11 @@ function xen_device_tree_editing()
>>               dt_set "/chosen/domU$i" "passthrough" "str" "enabled"
>>           fi
>> +        if test -n "${DOMU_P2M_MEM_MB[$i]}"
>> +        then
>> +            dt_set "/chosen/domU$i" "xen,domain-p2m-mem-mb"
> 
> Was this property recently introduced in Xen ?

No. It was introduced more than 3 years ago by the following commit 
cbea5a1149ca7fd4b7cdbfa3ec2e4f109b601ff7 “xen/arm: Allocate and free P2M 
pages from the P2M pool”.


  If so, it may be good to
> refer Xen's commit id.
> 
> - Ayan
> 

 


Rackspace

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