diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2010-09-02 18:15:29 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2010-09-02 18:15:29 +0100 |
commit | 422ae1ca2c9135fe1e8fc6ed821f7c9699b5b274 (patch) | |
tree | ce08145aeea178e6121714270688817e1a3d6309 /tools | |
parent | 785684b4fddbd683763530a974ac822a01522794 (diff) | |
download | xen-422ae1ca2c9135fe1e8fc6ed821f7c9699b5b274.tar.gz xen-422ae1ca2c9135fe1e8fc6ed821f7c9699b5b274.tar.bz2 xen-422ae1ca2c9135fe1e8fc6ed821f7c9699b5b274.zip |
xl: support console autoconnect on restore
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/libxl/xl_cmdimpl.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index a2a74c8879..f50183a7ca 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -2721,11 +2721,14 @@ int main_restore(int argc, char **argv) char *checkpoint_file = NULL; char *config_file = NULL; struct domain_create dom_info; - int paused = 0, debug = 0, daemonize = 1; + int paused = 0, debug = 0, daemonize = 1, console_autoconnect = 0; int opt, rc; - while ((opt = getopt(argc, argv, "hpde")) != -1) { + while ((opt = getopt(argc, argv, "chpde")) != -1) { switch (opt) { + case 'c': + console_autoconnect = 1; + break; case 'p': paused = 1; break; @@ -2761,6 +2764,7 @@ int main_restore(int argc, char **argv) dom_info.config_file = config_file; dom_info.restore_file = checkpoint_file; dom_info.migrate_fd = -1; + dom_info.console_autoconnect = console_autoconnect; rc = create_domain(&dom_info); if (rc < 0) |