diff options
author | Claudio Imbrenda <imbrenda@linux.vnet.ibm.com> | 2017-02-14 18:07:47 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-02-16 14:06:55 +0100 |
commit | 2d76e82395979b44e055b69b7e453f43c5c060cf (patch) | |
tree | fa8b2c6cfa594adb65eae796543c2c84a8aa8819 /include | |
parent | 1c64fdbc8177058802df205f5d7cd65edafa59a8 (diff) | |
download | qemu-2d76e82395979b44e055b69b7e453f43c5c060cf.zip qemu-2d76e82395979b44e055b69b7e453f43c5c060cf.tar.gz qemu-2d76e82395979b44e055b69b7e453f43c5c060cf.tar.bz2 |
move vm_start to cpus.c
This patch:
* moves vm_start to cpus.c.
* exports qemu_vmstop_requested, since it's needed by vm_start.
* extracts vm_prepare_start from vm_start; it does what vm_start did,
except restarting the cpus.
* vm_start now calls vm_prepare_start and then restarts the cpus.
Signed-off-by: Claudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Message-Id: <1487092068-16562-2-git-send-email-imbrenda@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sysemu/sysemu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index 4d50694..eda5241 100644 --- a/include/sysemu/sysemu.h +++ b/include/sysemu/sysemu.h @@ -37,6 +37,7 @@ void vm_state_notify(int running, RunState state); #define VMRESET_REPORT true void vm_start(void); +int vm_prepare_start(void); int vm_stop(RunState state); int vm_stop_force_state(RunState state); @@ -60,6 +61,7 @@ void qemu_register_powerdown_notifier(Notifier *notifier); void qemu_system_debug_request(void); void qemu_system_vmstop_request(RunState reason); void qemu_system_vmstop_request_prepare(void); +bool qemu_vmstop_requested(RunState *r); int qemu_shutdown_requested_get(void); int qemu_reset_requested_get(void); void qemu_system_killed(int signal, pid_t pid); |