On 13/05/2025 16:29, Oleksii Kurochko wrote:
> Refactor construct_domU() to improve architecture separation and reduce
> reliance on ARM-specific logic in common code:
> - Drop set_domain_type() from generic code. This function is specific
> to ARM and serves no purpose on other architectures like RISC-V,
> which lack the arch.type field in kernel_info.
> - Introduce arch_construct_domU() to encapsulate architecture-specific
> DomU construction steps.
> - Implement arch_construct_domU() for ARM. This includes:
> - Setting the domain type for CONFIG_ARM64.
> - Handling static memory allocation if xen,static-mem is present in
> the device tree.
> - Processing static shared memory.
> - Move call of make_resv_memory_node() to Arm's make_arch_nodes() as
> this call is specific to CONFIG_STATIC_SHM which is ARM specific,
> at least, now.
>
> This cleanup avoids empty stubs on other architectures and moves
> ARM-specific logic into arch code where it belongs.
>
> Also, don't loose a return value of functions called in
> Arm's make_arch_nodes().
>
> Suggested-by: Michal Orzel <michal.or...@amd.com>
Thanks, it looks better now.
> Signed-off-by: Oleksii Kurochko <oleksii.kuroc...@gmail.com>
Reviewed-by: Michal Orzel <michal.or...@amd.com>
possibly with the remark from Stefano fixed.
~Michal