dom0less: Turn arch_create_domUs into arch_parse_dom0less_node()

It deals with a single domain, and will be called on a later patch
by a new function parse_dom0less_node(), so the new name is apt.

Also, pass parameters using boot_domain instead as the plan is to use it
as dumping gound for all the extracted information from the bindings.

Not a functional change.

Signed-off-by: Alejandro Vallejo <alejandro.garciavallejo@amd.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
Alejandro Vallejo authored and Stefano Stabellini committed 2025-07-23 13:36:17 -07:00
1 parent a314a821f0
commit 755403bb7e
3 files changed
+7 -7

No files matched your search

+4 -3
View File
@@ -272,10 +272,11 @@ int __init init_vuart(struct domain *d, struct kernel_info *kinfo,
return rc;
}
void __init arch_create_domUs(struct dt_device_node *node,
struct xen_domctl_createdomain *d_cfg,
unsigned int flags)
void __init arch_parse_dom0less_node(struct dt_device_node *node,
struct boot_domain *bd)
{
struct xen_domctl_createdomain *d_cfg = &bd->create_cfg;
unsigned int flags = bd->create_flags;
uint32_t val;
d_cfg->arch.gic_version = XEN_DOMCTL_CONFIG_GIC_NATIVE;
+1 -1
View File
@@ -960,7 +960,7 @@ void __init create_domUs(void)
panic("'llc-colors' found, but LLC coloring is disabled\n");
#endif
arch_create_domUs(node, d_cfg, *flags);
arch_parse_dom0less_node(node, &ki.bd);
/*
* The variable max_init_domid is initialized with zero, so here it's
+2 -3
View File
@@ -45,9 +45,8 @@ void create_domUs(void);
bool is_dom0less_mode(void);
void set_xs_domain(struct domain *d);
void arch_create_domUs(struct dt_device_node *node,
struct xen_domctl_createdomain *d_cfg,
unsigned int flags);
void arch_parse_dom0less_node(struct dt_device_node *node,
struct boot_domain *bd);
int init_vuart(struct domain *d, struct kernel_info *kinfo,
const struct dt_device_node *node);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.