diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2011-11-22 16:32:37 -0200 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2011-12-06 11:40:00 -0200 |
commit | 0cfd6a9ab4356cd2c69bb29b1d70e1fd037bc1f2 (patch) | |
tree | 70d50b3eb62d4ad3bdd4ce128d40015299754694 /qmp-commands.hx | |
parent | 588988736634ad2aa356dafac78f88d1ea68b1a4 (diff) |
qapi: Convert memsave
Please, note that the QMP command has a new 'cpu-index' parameter.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qmp-commands.hx')
-rw-r--r-- | qmp-commands.hx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/qmp-commands.hx b/qmp-commands.hx index 4fcb92ccfa..0e2f3926e6 100644 --- a/qmp-commands.hx +++ b/qmp-commands.hx @@ -352,11 +352,8 @@ EQMP { .name = "memsave", - .args_type = "val:l,size:i,filename:s", - .params = "addr size file", - .help = "save to disk virtual memory dump starting at 'addr' of size 'size'", - .user_print = monitor_user_noop, - .mhandler.cmd_new = do_memory_save, + .args_type = "val:l,size:i,filename:s,cpu:i?", + .mhandler.cmd_new = qmp_marshal_input_memsave, }, SQMP @@ -370,6 +367,7 @@ Arguments: - "val": the starting address (json-int) - "size": the memory size, in bytes (json-int) - "filename": file path (json-string) +- "cpu": virtual CPU index (json-int, optional) Example: @@ -379,8 +377,6 @@ Example: "filename": "/tmp/virtual-mem-dump" } } <- { "return": {} } -Note: Depends on the current CPU. - EQMP { |