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

Re: [PATCH v2 3/5] xen/arm: Move make_resv_memory_node()


  • To: Koichiro Den <den@xxxxxxxxxxxxx>
  • From: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
  • Date: Fri, 11 Jul 2025 15:36:56 -0400
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=valinux.co.jp 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=QOgjnQm//Xb8zEaOrSxQ7E6pLq+k91BGHZZTiN4zLXo=; b=Zaeszpq3KNlYlTOX4llYg93fioGMe6ylDilwv2amI3IMIyUMz5gdmDVcgZvx+ta6chgP/iPR/6JAWYWPxUS/bGvRWAyGj5hsv52kVz0ju9qk/ntxO6CPfiOucO1+r31y3qJURibpSHTAoBsFFA5+d9+jfdSS7Wd2IhDhpg9yADQ0WvkTVMO7xrXiQQsM5TPyZrf37AbNAecQE0IaU/jHNuU34VwoTj65fZ8V1/p3i5byF21wcaXF8lttlbqVyZtkknepX0NeU0c0htJw7VC+BjX03f/t9OjhfazcrbA9TosJXhoOqnvpv1osOVEVNBO3KX6ogw0Xif1Dw/uzzS5aEw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xbLnButxuu/nnzQDa/hM3S3YzWoEIHmAcgI7OByib77Ib4SAQUsKf3seKNWWLADo7O6qkVzmlw/9CorfGpSxwumj4b9lk1EjlSkLVqJbmsUvE27qLryv1EcWxkmeweKItd6xgCS8GcRcvRYWSbZUzuTgAI3UfQfmmcJiqo42K9qxlsifBX06KzZXkXDxWiWn/IpYTB5IoSCMbpYU9knejPqlmj5TKx72Bf0DMSFi83yEggoMt++mVWb2TgozKK9P/mDcMrM7jsQfFqzKIHAR3v/EquK1OxwcagTZcNSR9TSDB/i4deLbzYodf//am81dDR1J4O29zdegjJS0HvJnXw==
  • Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, 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>
  • Delivery-date: Fri, 11 Jul 2025 19:37:15 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 7/9/25 03:58, Koichiro Den wrote:
> On Tue, Jul 08, 2025 at 04:12:50PM -0400, Stewart Hildebrand wrote:
>> On 7/5/25 10:27, Koichiro Den wrote:
>>> The /reserved-memory node is inherently not specific to static-shmem.
>>> Move it to a more generic domain build context. While at it, add an
>>> empty kernel_info_get_shm_mem_const() for the CONFIG_STATIC_SHM=n case,
>>> as it can now be invoked in such case.
>>>
>>> No functional change.
>>>
>>> Signed-off-by: Koichiro Den <den@xxxxxxxxxxxxx>
>>> ---
>>>  xen/arch/arm/domain_build.c           | 40 +++++++++++++++++++++++++++
>>>  xen/common/device-tree/static-shmem.c | 40 ---------------------------
>>>  xen/include/xen/fdt-domain-build.h    |  2 ++
>>>  xen/include/xen/static-shmem.h        | 15 ++++------
>>>  4 files changed, 48 insertions(+), 49 deletions(-)
>>
>> make_resv_memory_node() was recently moved from arch/arm to common in:
>>
>> 72c5fa220804 ("device-tree: Move Arm's static-shmem feature to common")
>>
>> Is there any rationale for moving it back?
> 
> I overlooked that commit. So to preserve its intent, and make it usable
> outside of the static-shmem purpose, which is my original intention, I
> think I should place it in xen/common/device-tree/dom0less-build.c. What do
> you think?

Hm, if only considering its current callers, yes, because STATIC_SHM
depends on STATIC_MEMORY depends on DOM0LESS_BOOT. However, whether to
put it in the common domain-build.c or dom0less-build.c would really
depend on how you intend to use it, but I don't see any new calls to
make_resv_memory_node() on the hypervisor side in the remainder of the
series. Given that you do introduce an equivalent call on the toolstack
side, I wonder if that's an oversight on the hypervisor side?

Lastly, in the context of the series, your intent looks to be to add the
pv time region to /reserved-memory, but is that actually necessary?



 


Rackspace

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