diff options
author | Steve Sistare <steven.sistare@oracle.com> | 2024-01-03 12:05:30 -0800 |
---|---|---|
committer | Peter Xu <peterx@redhat.com> | 2024-01-04 09:52:42 +0800 |
commit | f06f316d3e7f100cbbeaf0ea001d6332c12e7ab5 (patch) | |
tree | 10775666ef1d19b47060608997a60035df3e868e /include/sysemu | |
parent | 5d799717c21438423d81c58dd56fc01d5464be12 (diff) | |
download | qemu-f06f316d3e7f100cbbeaf0ea001d6332c12e7ab5.zip qemu-f06f316d3e7f100cbbeaf0ea001d6332c12e7ab5.tar.gz qemu-f06f316d3e7f100cbbeaf0ea001d6332c12e7ab5.tar.bz2 |
cpus: vm_was_suspended
Add a state variable to remember if a vm previously transitioned into a
suspended state.
Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/1704312341-66640-2-git-send-email-steven.sistare@oracle.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'include/sysemu')
-rw-r--r-- | include/sysemu/runstate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/runstate.h b/include/sysemu/runstate.h index c8c2bd8..88a67e2 100644 --- a/include/sysemu/runstate.h +++ b/include/sysemu/runstate.h @@ -51,6 +51,8 @@ int vm_prepare_start(bool step_pending); int vm_stop(RunState state); int vm_stop_force_state(RunState state); int vm_shutdown(void); +void vm_set_suspended(bool suspended); +bool vm_get_suspended(void); typedef enum WakeupReason { /* Always keep QEMU_WAKEUP_REASON_NONE = 0 */ |