mirror of https://gitee.com/openkylin/qemu.git
qapi: Convert system_powerdown
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
38d226535a
commit
5bc465e4b1
|
@ -492,8 +492,7 @@ ETEXI
|
|||
.args_type = "",
|
||||
.params = "",
|
||||
.help = "send system power down event",
|
||||
.user_print = monitor_user_noop,
|
||||
.mhandler.cmd_new = do_system_powerdown,
|
||||
.mhandler.cmd = hmp_system_powerdown,
|
||||
},
|
||||
|
||||
STEXI
|
||||
|
|
5
hmp.c
5
hmp.c
|
@ -109,3 +109,8 @@ void hmp_system_reset(Monitor *mon, const QDict *qdict)
|
|||
{
|
||||
qmp_system_reset(NULL);
|
||||
}
|
||||
|
||||
void hmp_system_powerdown(Monitor *mon, const QDict *qdict)
|
||||
{
|
||||
qmp_system_powerdown(NULL);
|
||||
}
|
||||
|
|
1
hmp.h
1
hmp.h
|
@ -26,5 +26,6 @@ void hmp_info_chardev(Monitor *mon);
|
|||
void hmp_quit(Monitor *mon, const QDict *qdict);
|
||||
void hmp_stop(Monitor *mon, const QDict *qdict);
|
||||
void hmp_system_reset(Monitor *mon, const QDict *qdict);
|
||||
void hmp_system_powerdown(Monitor *mon, const QDict *qdict);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -257,3 +257,17 @@
|
|||
# Since: 0.14.0
|
||||
##
|
||||
{ 'command': 'system_reset' }
|
||||
|
||||
##
|
||||
# @system_powerdown:
|
||||
#
|
||||
# Requests that a guest perform a powerdown operation.
|
||||
#
|
||||
# Since: 0.14.0
|
||||
#
|
||||
# Notes: A guest may or may not respond to this command. This command
|
||||
# returning does not indicate that a guest has accepted the request or
|
||||
# that it has shut down. Many guests will respond to this command by
|
||||
# prompting the user in some way.
|
||||
##
|
||||
{ 'command': 'system_powerdown' }
|
||||
|
|
Loading…
Reference in New Issue