aboutsummaryrefslogtreecommitdiffstats
path: root/qemu-monitor.hx
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2010-02-10 23:49:48 -0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-02-19 15:18:16 -0600
commitef4b7eeec1dee272a590486bca1b53675cf30973 (patch)
tree6d0cfae789e9151984520d0ff5695e764775ded2 /qemu-monitor.hx
parent97536cffbfb0b5f62b1dea50411031afa4f0cc35 (diff)
Monitor: Convert simple handlers to cmd_new_ret()
The following handlers always succeed and hence can be converted to cmd_new_ret() in the same commit. - do_stop() - do_quit() - do_system_reset() - do_system_powerdown() - do_migrate_cancel() - do_qmp_capabilities() - do_migrate_set_speed() - do_migrate_set_downtime() Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-monitor.hx')
-rw-r--r--qemu-monitor.hx16
1 files changed, 8 insertions, 8 deletions
diff --git a/qemu-monitor.hx b/qemu-monitor.hx
index 7f9d261cd..8e51df032 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -123,7 +123,7 @@ ETEXI
.params = "",
.help = "quit the emulator",
.user_print = monitor_user_noop,
- .mhandler.cmd_new = do_quit,
+ .cmd_new_ret = do_quit,
},
STEXI
@@ -303,7 +303,7 @@ ETEXI
.params = "",
.help = "stop emulation",
.user_print = monitor_user_noop,
- .mhandler.cmd_new = do_stop,
+ .cmd_new_ret = do_stop,
},
STEXI
@@ -494,7 +494,7 @@ ETEXI
.params = "",
.help = "reset the system",
.user_print = monitor_user_noop,
- .mhandler.cmd_new = do_system_reset,
+ .cmd_new_ret = do_system_reset,
},
STEXI
@@ -510,7 +510,7 @@ ETEXI
.params = "",
.help = "send system power down event",
.user_print = monitor_user_noop,
- .mhandler.cmd_new = do_system_powerdown,
+ .cmd_new_ret = do_system_powerdown,
},
STEXI
@@ -791,7 +791,7 @@ ETEXI
.params = "",
.help = "cancel the current VM migration",
.user_print = monitor_user_noop,
- .mhandler.cmd_new = do_migrate_cancel,
+ .cmd_new_ret = do_migrate_cancel,
},
STEXI
@@ -806,7 +806,7 @@ ETEXI
.params = "value",
.help = "set maximum speed (in bytes) for migrations",
.user_print = monitor_user_noop,
- .mhandler.cmd_new = do_migrate_set_speed,
+ .cmd_new_ret = do_migrate_set_speed,
},
STEXI
@@ -821,7 +821,7 @@ ETEXI
.params = "value",
.help = "set maximum tolerated downtime (in seconds) for migrations",
.user_print = monitor_user_noop,
- .mhandler.cmd_new = do_migrate_set_downtime,
+ .cmd_new_ret = do_migrate_set_downtime,
},
STEXI
@@ -1132,7 +1132,7 @@ ETEXI
.params = "",
.help = "enable QMP capabilities",
.user_print = monitor_user_noop,
- .mhandler.cmd_new = do_qmp_capabilities,
+ .cmd_new_ret = do_qmp_capabilities,
},
STEXI