[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 04/24] Process vmstop requests in IO thread
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] [PATCH v2 04/24] Process vmstop requests in IO thread |
Date: |
Tue, 1 Feb 2011 22:15:44 +0100 |
From: Jan Kiszka <address@hidden>
A pending vmstop request is also a reason to leave the inner main loop.
So far we ignored it, and pending stop requests issued over VCPU threads
were simply ignored.
Signed-off-by: Jan Kiszka <address@hidden>
---
vl.c | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/vl.c b/vl.c
index db24a05..5fad700 100644
--- a/vl.c
+++ b/vl.c
@@ -1373,15 +1373,11 @@ void main_loop_wait(int nonblocking)
static int vm_can_run(void)
{
- if (powerdown_requested)
- return 0;
- if (reset_requested)
- return 0;
- if (shutdown_requested)
- return 0;
- if (debug_requested)
- return 0;
- return 1;
+ return !(powerdown_requested ||
+ reset_requested ||
+ shutdown_requested ||
+ debug_requested ||
+ vmstop_requested);
}
qemu_irq qemu_system_powerdown;
--
1.7.1
- [Qemu-devel] [PATCH v2 00/24] [uq/master] Patch queue, part II, Jan Kiszka, 2011/02/01
- [Qemu-devel] [PATCH v2 11/24] kvm: Provide sigbus services arch-independently, Jan Kiszka, 2011/02/01
- [Qemu-devel] [PATCH v2 04/24] Process vmstop requests in IO thread,
Jan Kiszka <=
- [Qemu-devel] [PATCH v2 23/24] Refactor kvm&tcg function names in cpus.c, Jan Kiszka, 2011/02/01
- [Qemu-devel] [PATCH v2 17/24] kvm: Fix race between timer signals and vcpu entry under !IOTHREAD, Jan Kiszka, 2011/02/01
- [Qemu-devel] [PATCH v2 18/24] kvm: Add MCE signal support for !CONFIG_IOTHREAD, Jan Kiszka, 2011/02/01
- [Qemu-devel] [PATCH v2 01/24] kvm: x86: Fix build in absence of KVM_CAP_ASYNC_PF, Jan Kiszka, 2011/02/01
- [Qemu-devel] [PATCH v2 21/24] kvm: Remove static return code of kvm_handle_io, Jan Kiszka, 2011/02/01
- [Qemu-devel] [PATCH v2 22/24] kvm: Leave kvm_cpu_exec directly after KVM_EXIT_SHUTDOWN, Jan Kiszka, 2011/02/01
- [Qemu-devel] [PATCH v2 07/24] Flatten the main loop, Jan Kiszka, 2011/02/01
- [Qemu-devel] [PATCH v2 13/24] kvm: Set up signal mask also for !CONFIG_IOTHREAD, Jan Kiszka, 2011/02/01