[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [patch 10/14] qemu: introduce lock/unlock_iothread
From: |
mtosatti |
Subject: |
[Qemu-devel] [patch 10/14] qemu: introduce lock/unlock_iothread |
Date: |
Wed, 22 Apr 2009 16:15:14 -0300 |
User-agent: |
quilt/0.46-1 |
Hook to allow iothread to drop the global mutex.
Signed-off-by: Marcelo Tosatti <address@hidden>
Index: qemu-iothread-4/vl.c
===================================================================
--- qemu-iothread-4.orig/vl.c
+++ qemu-iothread-4/vl.c
@@ -3686,6 +3686,9 @@ static void qemu_init_main_loop(void)
{
}
+#define qemu_mutex_lock_iothread() do { } while (0)
+#define qemu_mutex_unlock_iothread() do { } while (0)
+
#ifdef _WIN32
static void host_main_loop_wait(int *timeout)
{
@@ -3778,7 +3781,9 @@ void main_loop_wait(int timeout)
slirp_select_fill(&nfds, &rfds, &wfds, &xfds);
}
#endif
+ qemu_mutex_unlock_iothread();
ret = select(nfds + 1, &rfds, &wfds, &xfds, &tv);
+ qemu_mutex_lock_iothread();
if (ret > 0) {
IOHandlerRecord **pioh;
--
- [Qemu-devel] [patch 05/14] qemu: factor out special event notification, (continued)
- [Qemu-devel] [patch 05/14] qemu: factor out special event notification, mtosatti, 2009/04/22
- [Qemu-devel] [patch 08/14] qemu: introduce qemu_cpu_kick, mtosatti, 2009/04/22
- [Qemu-devel] [patch 07/14] qemu: introduce qemu_init_vcpu, mtosatti, 2009/04/22
- [Qemu-devel] [patch 14/14] qemu: introduce iothread, mtosatti, 2009/04/22
- [Qemu-devel] [patch 13/14] qemu: handle stop request in main loop, mtosatti, 2009/04/22
- [Qemu-devel] [patch 04/14] qemu: explictly rearm alarm timer on main_loop_wait, mtosatti, 2009/04/22
- [Qemu-devel] [patch 12/14] qemu: refactor tcg cpu execution loop, mtosatti, 2009/04/22
- [Qemu-devel] [patch 09/14] qemu: introduce qemu_init_main_loop, mtosatti, 2009/04/22
- [Qemu-devel] [patch 06/14] qemu: refactor main_loop, mtosatti, 2009/04/22
- [Qemu-devel] [patch 10/14] qemu: introduce lock/unlock_iothread,
mtosatti <=
- [Qemu-devel] [patch 01/14] qemu: create helper for event notification, mtosatti, 2009/04/22
- [Qemu-devel] [patch 03/14] qemu: per-arch cpu_has_work, mtosatti, 2009/04/22
- [Qemu-devel] [patch 02/14] qemu: mutex/thread/cond wrappers and configure tweaks, mtosatti, 2009/04/22
- [Qemu-devel] Re: [patch 02/14] qemu: mutex/thread/cond wrappers and configure tweaks, Anthony Liguori, 2009/04/22
- [Qemu-devel] svn trunk currently borked, Martin Mohring, 2009/04/23
- Re: [Qemu-devel] svn trunk currently borked, Laurent Desnogues, 2009/04/23
- Re: [Qemu-devel] svn trunk currently borked, Anthony Liguori, 2009/04/23
- Re: [Qemu-devel] svn trunk currently borked, Martin Mohring, 2009/04/23