diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-08-05 21:31:00 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-08-05 21:31:00 +0000 |
commit | faea38e7863a6e29f110063388eb93840fcd475c (patch) | |
tree | afb1de92737724cc8341079e7fe6faf78f0c56d0 /monitor.c | |
parent | 42ca638823ad463d5eb0301d160887883fad9efd (diff) |
multiple snapshot support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2086 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 24 |
1 files changed, 8 insertions, 16 deletions
@@ -380,18 +380,6 @@ static void do_log(const char *items) cpu_set_log(mask); } -static void do_savevm(const char *filename) -{ - if (qemu_savevm(filename) < 0) - term_printf("I/O error when saving VM to '%s'\n", filename); -} - -static void do_loadvm(const char *filename) -{ - if (qemu_loadvm(filename) < 0) - term_printf("I/O error when loading VM from '%s'\n", filename); -} - static void do_stop(void) { vm_stop(EXCP_INTERRUPT); @@ -1155,10 +1143,12 @@ static term_cmd_t term_cmds[] = { "filename", "save screen into PPM image 'filename'" }, { "log", "s", do_log, "item1[,...]", "activate logging of the specified items to '/tmp/qemu.log'" }, - { "savevm", "F", do_savevm, - "filename", "save the whole virtual machine state to 'filename'" }, - { "loadvm", "F", do_loadvm, - "filename", "restore the whole virtual machine state from 'filename'" }, + { "savevm", "s?", do_savevm, + "tag|id", "save a VM snapshot. If no tag or id are provided, a new snapshot is created" }, + { "loadvm", "s", do_loadvm, + "tag|id", "restore a VM snapshot from its tag or id" }, + { "delvm", "s", do_delvm, + "tag|id", "delete a VM snapshot from its tag or id" }, { "stop", "", do_stop, "", "stop emulation", }, { "c|cont", "", do_cont, @@ -1241,6 +1231,8 @@ static term_cmd_t info_cmds[] = { "", "show profiling information", }, { "capture", "", do_info_capture, "show capture information" }, + { "snapshots", "", do_info_snapshots, + "show the currently saved VM snapshots" }, { NULL, NULL, }, }; |