diff options
Diffstat (limited to 'include/sysemu/sysemu.h')
-rw-r--r-- | include/sysemu/sysemu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index 58e54ee1ff..a86b8cfad7 100644 --- a/include/sysemu/sysemu.h +++ b/include/sysemu/sysemu.h @@ -49,6 +49,11 @@ typedef enum ShutdownCause { SHUTDOWN_CAUSE__MAX, } ShutdownCause; +static inline bool shutdown_caused_by_guest(ShutdownCause cause) +{ + return cause >= SHUTDOWN_CAUSE_GUEST_SHUTDOWN; +} + void vm_start(void); int vm_prepare_start(void); int vm_stop(RunState state); |