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 <d...@valinux.co.jp> > > --- > > 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? Thanks, -Koichiro