Paolo Bonzini afbe70535f main-loop: introduce qemu_mutex_iothread_locked
This function will be used to avoid recursive locking of the iothread lock
whenever address_space_rw/ld*/st* are called with the BQL held, which is
almost always the case.

Tracking whether the iothread is owned is very cheap (just use a TLS
variable) but requires some care because now the lock must always be
taken with qemu_mutex_lock_iothread().  Previously this wasn't the case.
Outside TCG mode this is not a problem.  In TCG mode, we need to be
careful and avoid the "prod out of compiled code" step if already
in a VCPU thread.  This is easily done with a check on current_cpu,
i.e. qemu_in_vcpu_thread().

Hopefully, multithreaded TCG will get rid of the whole logic to kick
VCPUs whenever an I/O event occurs!

Cc: Frederic Konrad <fred.konrad@greensocs.com>
Message-Id: <1434646046-27150-3-git-send-email-pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-07-01 15:45:50 +02:00
2015-06-23 15:08:52 +01:00
2015-06-18 14:12:33 +02:00
2015-06-25 11:19:46 +01:00
2015-06-24 16:33:42 +01:00
2015-06-17 20:02:15 +01:00
2015-06-25 11:19:46 +01:00
2015-06-17 20:02:15 +01:00
2015-06-22 17:40:01 +02:00
2015-06-22 17:40:01 +02:00
2015-06-23 10:38:00 +01:00
2015-06-22 17:40:01 +02:00
2015-06-22 17:40:01 +02:00
2015-06-22 17:40:01 +02:00
2015-06-26 16:00:50 +02:00
2015-04-04 09:45:59 +03:00
2014-06-16 13:24:35 +02:00
2013-09-05 09:40:31 -05:00
2015-06-12 06:42:34 +02:00
2015-06-23 15:08:52 +01:00
2013-10-11 09:34:56 -07:00
2015-06-03 14:21:24 +03:00
2015-06-22 17:40:01 +02:00
2015-04-30 16:05:48 +03:00
2013-07-23 02:41:31 +02:00
2015-06-12 13:42:17 +01:00
2015-06-23 20:23:39 +03:00
2015-06-03 14:21:24 +03:00
2015-06-15 13:24:51 +01:00
2014-05-24 00:07:29 +04:00
2015-05-11 08:59:07 -04:00
2015-06-23 19:57:27 +03:00
2015-05-22 15:58:22 -04:00
2013-10-11 09:34:56 -07:00
2015-06-11 10:13:28 +01:00
2015-04-25 22:05:07 +01:00
2013-10-11 09:34:56 -07:00
2015-06-22 18:20:40 +02:00
2015-06-23 17:46:20 +01:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
QEMU With E2K User Support
Readme 459 MiB
Languages
C 83.1%
C++ 6.3%
Python 3.2%
Dylan 2.8%
Shell 1.6%
Other 2.8%