qemu-e2k/qga
Andrew Deason c8ec041d00 qga/commands-posix: 'guest-shutdown' for Solaris
On Solaris, instead of the -P, -H, and -r flags, we need to provide
the target init state to the 'shutdown' command: state 5 is poweroff,
0 is halt, and 6 is reboot. We also need to pass -g0 to avoid the
default 60-second delay, and -y to avoid a confirmation prompt.

Implement this logic under an #ifdef CONFIG_SOLARIS, so the
'guest-shutdown' command works properly on Solaris.

Signed-off-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220426195526.7699-6-adeason@sinenomine.net>
2022-05-04 12:00:46 +04:00
..
installer qga-win/msi: fix missing libstdc++-6 DLL in MSI installer 2021-08-03 07:01:36 -05:00
vss-win32 qga/vss-win32: fix compilation with clang++ 2022-04-05 10:42:06 +02:00
channel-posix.c util: rename qemu_*block() socket functions 2022-05-03 15:53:20 +04:00
channel-win32.c qga: Add spaces around operator 2021-03-16 20:20:37 -05:00
channel.h qga: add systemd socket activation support 2017-03-06 00:54:18 -06:00
commands-common.h qga: move qga_get_host_name() 2022-04-21 17:09:09 +04:00
commands-posix-ssh.c Remove superfluous ERRP_GUARD() 2021-08-26 17:15:28 +02:00
commands-posix.c qga/commands-posix: 'guest-shutdown' for Solaris 2022-05-04 12:00:46 +04:00
commands-win32.c qga: move qga_get_host_name() 2022-04-21 17:09:09 +04:00
commands.c qga: remove need for QEMU atomic.h 2022-04-21 17:09:09 +04:00
guest-agent-command-state.c qga: use local path for local headers 2018-06-01 19:20:38 +03:00
guest-agent-core.h Replace GCC_FMT_ATTR with G_GNUC_PRINTF 2022-03-22 14:40:51 +04:00
main.c qga: use fixed-length and GDateTime for log timestamp 2022-04-21 17:37:16 +04:00
meson.build qga: wixl: get path to sysroot from pkg-config as intended 2022-04-28 08:51:57 +02:00
qapi-schema.json qapi: Add spaces after symbol declaration for consistency 2021-10-02 07:33:41 +02:00
service-win32.c qga: Remove unnecessary glib.h includes 2016-06-07 18:19:24 +03:00
service-win32.h qga-win: changing --retry-path option behavior 2018-10-31 09:04:20 -05:00
vss-win32.c qga-win: add support for qmp_guest_fsfreeze_freeze_list 2018-10-30 16:48:49 -05:00
vss-win32.h qga-win: add support for qmp_guest_fsfreeze_freeze_list 2018-10-30 16:48:49 -05:00