[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [CFT PATCH 12/12] iothread stops the vcpu thread via IPI
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [CFT PATCH 12/12] iothread stops the vcpu thread via IPI |
Date: |
Tue, 8 Feb 2011 18:18:29 +0100 |
This "if" has no reason to exist in the iothread world, and it breaks
Wine because of the slowness of the thread primitives there.
Signed-off-by: Paolo Bonzini <address@hidden>
---
cpus.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/cpus.c b/cpus.c
index 67fd672..3d74ad7 100644
--- a/cpus.c
+++ b/cpus.c
@@ -1053,8 +1053,10 @@ bool cpu_exec_all(void)
qemu_clock_enable(vm_clock,
(env->singlestep_enabled & SSTEP_NOTIMER) == 0);
+#ifndef CONFIG_IOTHREAD
if (qemu_alarm_pending())
break;
+#endif
if (cpu_can_run(env)) {
r = qemu_cpu_exec(env);
if (kvm_enabled()) {
--
1.7.3.5
- [Qemu-devel] [CFT PATCH 00/12] Tricky parts of my iothread-for-win32 stuff, Paolo Bonzini, 2011/02/08
- [Qemu-devel] [CFT PATCH 08/12] do not use timedwait on qemu_halt_cond, Paolo Bonzini, 2011/02/08
- [Qemu-devel] [CFT PATCH 11/12] do not use timedwait on qemu_cpu_cond, Paolo Bonzini, 2011/02/08
- [Qemu-devel] [CFT PATCH 07/12] always signal pause_cond after stopping a VCPU, Paolo Bonzini, 2011/02/08
- [Qemu-devel] [CFT PATCH 01/12] io-thread: make sure to initialize qemu_work_cond and qemu_cpu_cond, Paolo Bonzini, 2011/02/08
- [Qemu-devel] [CFT PATCH 03/12] inline cpu_halted into sole caller, Paolo Bonzini, 2011/02/08
- [Qemu-devel] [CFT PATCH 09/12] do not use timedwait on qemu_system_cond, Paolo Bonzini, 2011/02/08
- [Qemu-devel] [CFT PATCH 12/12] iothread stops the vcpu thread via IPI,
Paolo Bonzini <=
- [Qemu-devel] [CFT PATCH 02/12] cris, microblaze: use cpu_has_work, Paolo Bonzini, 2011/02/08
- [Qemu-devel] [CFT PATCH 06/12] exit round-robin vcpu loop if cpu->stopped is true, Paolo Bonzini, 2011/02/08
- Re: [Qemu-devel] [CFT PATCH 00/12] Tricky parts of my iothread-for-win32 stuff, Aurelien Jarno, 2011/02/08
- [Qemu-devel] [CFT PATCH 10/12] do not use timedwait on qemu_pause_cond, Paolo Bonzini, 2011/02/08
- [Qemu-devel] [CFT PATCH 04/12] change qemu_thread_equal API to always compare with current thread, Paolo Bonzini, 2011/02/08