]> xenbits.xensource.com Git - xen.git/commitdiff
tools/libxl: pass libxl__domain_build_state to libxl__arch_domain_create
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Wed, 3 Feb 2021 20:07:03 +0000 (20:07 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 8 Feb 2021 12:26:44 +0000 (12:26 +0000)
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>
tools/libs/light/libxl_arch.h
tools/libs/light/libxl_arm.c
tools/libs/light/libxl_dom.c
tools/libs/light/libxl_x86.c

index 6a91775b9e20699b27b0262790276635db3b5724..c305d704b1e079fa92e0d0d4fe59dc508030c044 100644 (file)
@@ -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
index 66e8a065fe67170a2b9b76e2c8534052e513ffd8..8c4eda3caf8ddcfc0230ecd196f3c8d08545fd96 100644 (file)
@@ -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;
index 19168572fd3ef0c98e64b25df72678f3a26b7bdf..842a51c86cbb246a3ad6d19e69a87f4983c825ef 100644 (file)
@@ -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
index 91a9fc72ed819682c620cacff3a8cf2451dd7ad9..91169d1045be6074a01168eda1ad567a6b505b79 100644 (file)
@@ -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;