mirror of
https://github.com/qemu/qemu.git
synced 2025-08-05 19:09:28 +00:00

Add a QMP command to allow for the behaviors specified by the -no-reboot and -no-shutdown command line option to be set at runtime. The new command is named set-action and takes optional arguments, named after an event, that provide a corresponding action to take. Example: -> { "execute": "set-action", "arguments": { "reboot": "none", "shutdown": "poweroff", "watchdog": "debug" } } <- { "return": {} } Suggested-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com> Message-Id: <1607705564-26264-4-git-send-email-alejandro.j.jimenez@oracle.com> [Split the series differently, with -action based on the QMP command. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
19 lines
423 B
C
19 lines
423 B
C
/*
|
|
* Copyright (c) 2020 Oracle and/or its affiliates.
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2.
|
|
* See the COPYING file in the top-level directory.
|
|
*
|
|
*/
|
|
|
|
#ifndef RUNSTATE_ACTION_H
|
|
#define RUNSTATE_ACTION_H
|
|
|
|
#include "qapi/qapi-commands-run-state.h"
|
|
|
|
/* in softmmu/runstate-action.c */
|
|
extern RebootAction reboot_action;
|
|
extern ShutdownAction shutdown_action;
|
|
|
|
#endif /* RUNSTATE_ACTION_H */
|