mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
tools/libxl: pass libxl__domain_build_state to libxl__arch_domain_create
No functional change. Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com> Reviewed-by: Ian Jackson <iwj@xenproject.org> Release-Acked-by: Ian Jackson <iwj@xenproject.org>
This commit is contained in:
1 parent
ca82d3fecc
commit
804fe75137
4 files changed
+12
-6
No files matched your search
@@ -30,8 +30,10 @@ int libxl__arch_domain_save_config(libxl__gc *gc,
|
||||
|
||||
/* arch specific internal domain creation function */
|
||||
_hidden
|
||||
int libxl__arch_domain_create(libxl__gc *gc, libxl_domain_config *d_config,
|
||||
uint32_t domid);
|
||||
int libxl__arch_domain_create(libxl__gc *gc,
|
||||
libxl_domain_config *d_config,
|
||||
libxl__domain_build_state *state,
|
||||
uint32_t domid);
|
||||
|
||||
/* setup arch specific hardware description, i.e. DTB on ARM */
|
||||
_hidden
|
||||
|
||||
@@ -126,7 +126,9 @@ int libxl__arch_domain_save_config(libxl__gc *gc,
|
||||
return 0;
|
||||
}
|
||||
|
||||
int libxl__arch_domain_create(libxl__gc *gc, libxl_domain_config *d_config,
|
||||
int libxl__arch_domain_create(libxl__gc *gc,
|
||||
libxl_domain_config *d_config,
|
||||
ibxl__domain_build_state *state,
|
||||
uint32_t domid)
|
||||
{
|
||||
return 0;
|
||||
|
||||
@@ -378,7 +378,7 @@ int libxl__build_pre(libxl__gc *gc, uint32_t domid,
|
||||
state->store_port = xc_evtchn_alloc_unbound(ctx->xch, domid, state->store_domid);
|
||||
state->console_port = xc_evtchn_alloc_unbound(ctx->xch, domid, state->console_domid);
|
||||
|
||||
rc = libxl__arch_domain_create(gc, d_config, domid);
|
||||
rc = libxl__arch_domain_create(gc, d_config, state, domid);
|
||||
|
||||
/* Construct a CPUID policy, but only for brand new domains. Domains
|
||||
* being migrated-in/restored have CPUID handled during the
|
||||
|
||||
@@ -453,8 +453,10 @@ static int hvm_set_conf_params(libxl__gc *gc, uint32_t domid,
|
||||
return ret;
|
||||
}
|
||||
|
||||
int libxl__arch_domain_create(libxl__gc *gc, libxl_domain_config *d_config,
|
||||
uint32_t domid)
|
||||
int libxl__arch_domain_create(libxl__gc *gc,
|
||||
libxl_domain_config *d_config,
|
||||
libxl__domain_build_state *state,
|
||||
uint32_t domid)
|
||||
{
|
||||
const libxl_domain_build_info *info = &d_config->b_info;
|
||||
int ret = 0;
|
||||
|
||||