softmmu: add means to pass an exit code when requesting a shutdown
commit0386f39b46a28da87647075f0fc20da4ba1f6478
authorClément Chigot <chigot@adacore.com>
Tue, 3 Oct 2023 07:14:23 +0000 (3 09:14 +0200)
committerAlistair Francis <alistair.francis@wdc.com>
Thu, 12 Oct 2023 02:32:20 +0000 (12 12:32 +1000)
treefe8e3ae31719392938ca5b480857fb021d16e33f
parenteb992b609159212c55ed26971dde7743c956cb7a
softmmu: add means to pass an exit code when requesting a shutdown

As of now, the exit code was either EXIT_FAILURE when a panic shutdown
was requested or EXIT_SUCCESS otherwise.
However, some hardware could want to pass more complex exit codes. Thus,
introduce a new shutdown request function allowing that.

Signed-off-by: Clément Chigot <chigot@adacore.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20231003071427.188697-2-chigot@adacore.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
include/sysemu/runstate.h
system/runstate.c