mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06: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
|
@ -736,7 +736,7 @@ static void cpu_handle_ioreq(void *opaque)
|
|||
* guest resumes and does a hlt with interrupts disabled which
|
||||
* causes Xen to powerdown the domain.
|
||||
*/
|
||||
if (vm_running) {
|
||||
if (runstate_is_running()) {
|
||||
if (qemu_shutdown_requested_get()) {
|
||||
destroy_hvm_domain();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue