[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 03/10] Process pending work while waiting for ini
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] [PATCH v4 03/10] Process pending work while waiting for initial kick-off in TCG mode |
Date: |
Fri, 17 Feb 2012 18:31:15 +0100 |
When the TCG thread is started but not yet the machine, we wait in
qemu_tcg_cpu_thread_fn on tcg_halt_cond. To allow run_on_cpu already at
this time, we need to process pending request in that loop.
CC: Paolo Bonzini <address@hidden>
Signed-off-by: Jan Kiszka <address@hidden>
---
cpus.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/cpus.c b/cpus.c
index 4e65894..4a10775 100644
--- a/cpus.c
+++ b/cpus.c
@@ -761,6 +761,11 @@ static void *qemu_tcg_cpu_thread_fn(void *arg)
/* wait for initial kick-off after machine start */
while (first_cpu->stopped) {
qemu_cond_wait(tcg_halt_cond, &qemu_global_mutex);
+
+ /* process any pending work */
+ for (env = first_cpu; env != NULL; env = env->next_cpu) {
+ qemu_wait_io_event_common(env);
+ }
}
while (1) {
--
1.7.3.4
- [Qemu-devel] [PATCH v4 00/10] uq/master: TPR access optimization for Windows guests, Jan Kiszka, 2012/02/17
- [Qemu-devel] [PATCH v4 03/10] Process pending work while waiting for initial kick-off in TCG mode,
Jan Kiszka <=
- [Qemu-devel] [PATCH v4 09/10] optionsrom: Reserve space for checksum, Jan Kiszka, 2012/02/17
- [Qemu-devel] [PATCH v4 08/10] kvmvapic: Simplify mp/up_set_tpr, Jan Kiszka, 2012/02/17
- [Qemu-devel] [PATCH v4 02/10] Remove useless casts from cpu iterators, Jan Kiszka, 2012/02/17
- [Qemu-devel] [PATCH v4 05/10] target-i386: Add infrastructure for reporting TPR MMIO accesses, Jan Kiszka, 2012/02/17
- [Qemu-devel] [PATCH v4 06/10] kvmvapic: Add option ROM, Jan Kiszka, 2012/02/17
- [Qemu-devel] [PATCH v4 01/10] kvm: Set cpu_single_env only once, Jan Kiszka, 2012/02/17
- [Qemu-devel] [PATCH v4 04/10] Allow to use pause_all_vcpus from VCPU context, Jan Kiszka, 2012/02/17
- [Qemu-devel] [PATCH v4 10/10] kvmvapic: Use optionrom helpers, Jan Kiszka, 2012/02/17
- [Qemu-devel] [PATCH v4 07/10] kvmvapic: Introduce TPR access optimization for Windows guests, Jan Kiszka, 2012/02/17
- Re: [Qemu-devel] [PATCH v4 00/10] uq/master: TPR access optimization for Windows guests, Avi Kivity, 2012/02/18