]> xenbits.xensource.com Git - xen.git/commit
xen/common: dom0less: introduce common domain-build.c
authorOleksii Kurochko <oleksii.kurochko@gmail.com>
Mon, 5 May 2025 18:10:37 +0000 (20:10 +0200)
committerStefano Stabellini <stefano.stabellini@amd.com>
Mon, 5 May 2025 21:38:59 +0000 (14:38 -0700)
commitd07b7369aa65b0ac78bb6264a832cbb3c9716855
tree530e112d3b4bed7a9bda4b1bd3afb449c8af0bf9
parenta7ee73f581575d29098140a0ae32da1755262de1
xen/common: dom0less: introduce common domain-build.c

Some functions of Arm's domain_build.c could be reused by dom0less or other
features connected to domain construction/build.

The following functions are moved to common:
- get_allocation_size().
- allocate_domheap_memory().
- guest_map_pages().
- allocate_bank_memory().
- add_hwdom_free_regions().
- find_unallocated_memory().
- allocate_memory().
- dtb_load().
- initrd_load().

Prototype of dtb_load() and initrd_load() is updated to recieve a pointer
to copy_to_guest_phys() as some archs require
copy_to_guest_phys_fluch_dcache().

Update arm/include/asm/Makefile to generate  domain-build.h for Arm as it is
used by domain-build.c.

Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/domain_build.c
xen/arch/arm/include/asm/domain_build.h
xen/common/device-tree/Makefile
xen/common/device-tree/domain-build.c [new file with mode: 0644]
xen/include/xen/fdt-domain-build.h