mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
Drop the vm_running global variable
Use runstate_is_running() instead, which is introduced by this commit. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
1bcef683bf
commit
1354869c38
14 changed files with 29 additions and 27 deletions
|
|
@ -372,7 +372,7 @@ void migrate_fd_put_ready(void *opaque)
|
|||
DPRINTF("iterate\n");
|
||||
if (qemu_savevm_state_iterate(s->mon, s->file) == 1) {
|
||||
int state;
|
||||
int old_vm_running = vm_running;
|
||||
int old_vm_running = runstate_is_running();
|
||||
|
||||
DPRINTF("done iterating\n");
|
||||
vm_stop(RSTATE_PRE_MIGRATE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue