mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
a314a821f0
commit
755403bb7e
3 files changed
+7
-7
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||