[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen staging] Revert "tools/libxl: Plumb domain_create_state down into libxl__build_pre()"
commit 292b6320a8a5223968d4709f2d251bfb475a9f3d Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Fri Jan 24 14:53:09 2020 +0000 Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CommitDate: Fri Jan 24 15:16:23 2020 +0000 Revert "tools/libxl: Plumb domain_create_state down into libxl__build_pre()" This reverts commit aacc143006429de46932aabae17c13846c71fa45. OSSTest reports that it breaks stubdoms. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- tools/libxl/libxl_create.c | 16 ++++++++-------- tools/libxl/libxl_dm.c | 5 ++--- tools/libxl/libxl_dom.c | 4 +--- tools/libxl/libxl_internal.h | 11 +++++++---- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c index 69fceff061..32d45dcef0 100644 --- a/tools/libxl/libxl_create.c +++ b/tools/libxl/libxl_create.c @@ -431,17 +431,17 @@ static void init_console_info(libxl__gc *gc, Only 'channels' when mapped to consoles have a string name. */ } -int libxl__domain_build(libxl__gc *gc, uint32_t domid, - libxl__domain_create_state *dcs) +int libxl__domain_build(libxl__gc *gc, + libxl_domain_config *d_config, + uint32_t domid, + libxl__domain_build_state *state) { - libxl_domain_config *d_config = dcs->guest_config; libxl_domain_build_info *const info = &d_config->b_info; - libxl__domain_build_state *state = &dcs->build_state; char **vments = NULL, **localents = NULL; struct timeval start_time; int i, ret; - ret = libxl__build_pre(gc, domid, dcs); + ret = libxl__build_pre(gc, domid, d_config, state); if (ret) goto out; @@ -1218,7 +1218,7 @@ static void domcreate_bootloader_done(libxl__egc *egc, dcs->sdss.callback = domcreate_devmodel_started; if (restore_fd < 0 && dcs->domid_soft_reset == INVALID_DOMID) { - rc = libxl__domain_build(gc, domid, dcs); + rc = libxl__domain_build(gc, d_config, domid, state); domcreate_rebuild_done(egc, dcs, rc); return; } @@ -1244,7 +1244,7 @@ static void domcreate_bootloader_done(libxl__egc *egc, goto out; } - rc = libxl__build_pre(gc, domid, dcs); + rc = libxl__build_pre(gc, domid, d_config, state); if (rc) goto out; @@ -1554,7 +1554,7 @@ static void domcreate_launch_dm(libxl__egc *egc, libxl__multidev *multidev, dcs->sdss.dm.guest_domid = domid; if (libxl_defbool_val(d_config->b_info.device_model_stubdomain)) - libxl__spawn_stub_dm(egc, dcs); + libxl__spawn_stub_dm(egc, &dcs->sdss); else libxl__spawn_local_dm(egc, &dcs->sdss.dm); diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c index 3f08ccad1b..e92e412c1b 100644 --- a/tools/libxl/libxl_dm.c +++ b/tools/libxl/libxl_dm.c @@ -2097,9 +2097,8 @@ char *libxl__stub_dm_name(libxl__gc *gc, const char *guest_name) return GCSPRINTF("%s-dm", guest_name); } -void libxl__spawn_stub_dm(libxl__egc *egc, libxl__domain_create_state *dcs) +void libxl__spawn_stub_dm(libxl__egc *egc, libxl__stub_dm_spawn_state *sdss) { - libxl__stub_dm_spawn_state *sdss = &dcs->sdss; STATE_AO_GC(sdss->dm.spawn.ao); libxl_ctx *ctx = libxl__gc_owner(gc); int ret; @@ -2198,7 +2197,7 @@ void libxl__spawn_stub_dm(libxl__egc *egc, libxl__domain_create_state *dcs) if (ret) goto out; uint32_t dm_domid = sdss->pvqemu.guest_domid; - ret = libxl__domain_build(gc, dm_domid, dcs); + ret = libxl__domain_build(gc, dm_config, dm_domid, stubdom_state); if (ret) goto out; diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c index e0b6d4a8d3..cdb294ab8d 100644 --- a/tools/libxl/libxl_dom.c +++ b/tools/libxl/libxl_dom.c @@ -387,11 +387,9 @@ static void hvm_set_conf_params(xc_interface *handle, uint32_t domid, } int libxl__build_pre(libxl__gc *gc, uint32_t domid, - libxl__domain_create_state *dcs) + libxl_domain_config *d_config, libxl__domain_build_state *state) { - libxl_domain_config *d_config = dcs->guest_config; libxl_domain_build_info *const info = &d_config->b_info; - libxl__domain_build_state *state = &dcs->build_state; libxl_ctx *ctx = libxl__gc_owner(gc); char *xs_domid, *con_domid; int rc; diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h index d919f91882..ba8c9b41ab 100644 --- a/tools/libxl/libxl_internal.h +++ b/tools/libxl/libxl_internal.h @@ -1389,7 +1389,8 @@ _hidden void libxl__domain_build_state_init(libxl__domain_build_state *s); _hidden void libxl__domain_build_state_dispose(libxl__domain_build_state *s); _hidden int libxl__build_pre(libxl__gc *gc, uint32_t domid, - libxl__domain_create_state *dcs); + libxl_domain_config * const d_config, + libxl__domain_build_state *state); _hidden int libxl__build_post(libxl__gc *gc, uint32_t domid, libxl_domain_build_info *info, libxl__domain_build_state *state, char **vms_ents, char **local_ents); @@ -1959,8 +1960,10 @@ _hidden int libxl__domain_make(libxl__gc *gc, libxl__domain_build_state *state, uint32_t *domid); -_hidden int libxl__domain_build(libxl__gc *gc, uint32_t domid, - libxl__domain_create_state *dcs); +_hidden int libxl__domain_build(libxl__gc *gc, + libxl_domain_config *d_config, + uint32_t domid, + libxl__domain_build_state *state); /* for device model creation */ _hidden const char *libxl__domain_device_model(libxl__gc *gc, @@ -4110,7 +4113,7 @@ typedef struct { libxl__xswait_state xswait; } libxl__stub_dm_spawn_state; -_hidden void libxl__spawn_stub_dm(libxl__egc *egc, libxl__domain_create_state *dcs); +_hidden void libxl__spawn_stub_dm(libxl__egc *egc, libxl__stub_dm_spawn_state*); _hidden char *libxl__stub_dm_name(libxl__gc *gc, const char * guest_name); -- generated by git-patchbot for /home/xen/git/xen.git#staging _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |