mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
runstate: Allow user to migrate twice
It should be a matter of allowing the transition POSTMIGRATE -> FINISH_MIGRATE, but it turns out that the VM won't do the transition the second time because it's already stopped. So this commit also adds vm_stop_force_state() which performs the transition even if the VM is already stopped. While there also allow other states to migrate. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
c370f09dba
commit
8a9236f1d2
4 changed files with 20 additions and 3 deletions
1
sysemu.h
1
sysemu.h
|
@ -35,6 +35,7 @@ void vm_state_notify(int running, RunState state);
|
|||
|
||||
void vm_start(void);
|
||||
void vm_stop(RunState state);
|
||||
void vm_stop_force_state(RunState state);
|
||||
|
||||
void qemu_system_reset_request(void);
|
||||
void qemu_system_shutdown_request(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue