mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00
multiple snapshot support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2086 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
42ca638823
commit
faea38e786
6 changed files with 710 additions and 138 deletions
24
monitor.c
24
monitor.c
|
@ -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, },
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue