monitor: Convert do_physical_memory_save() to QObject

Note that errors are not being converted yet.

Signed-off-by: Luiz Capitulino <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
diff --git a/qemu-monitor.hx b/qemu-monitor.hx
index 70b9125..1c605bd 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -680,7 +680,8 @@
         .args_type  = "val:l,size:i,filename:s",
         .params     = "addr size file",
         .help       = "save to disk physical memory dump starting at 'addr' of size 'size'",
-        .mhandler.cmd = do_physical_memory_save,
+        .user_print = monitor_user_noop,
+        .mhandler.cmd_new = do_physical_memory_save,
     },
 
 STEXI