[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 04/15] kvm: Add in-kernel irqchip awareness to cpu_t
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] [PATCH 04/15] kvm: Add in-kernel irqchip awareness to cpu_thread_is_idle |
Date: |
Fri, 4 Mar 2011 11:20:01 +0100 |
With in-kernel irqchip support enabled, the vcpu threads sleep in kernel
space while halted. Account for this difference in cpu_thread_is_idle.
Signed-off-by: Jan Kiszka <address@hidden>
---
cpus.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/cpus.c b/cpus.c
index 0f33945..66f6b5a 100644
--- a/cpus.c
+++ b/cpus.c
@@ -147,7 +147,8 @@ static bool cpu_thread_is_idle(CPUState *env)
if (env->stopped || !vm_running) {
return true;
}
- if (!env->halted || qemu_cpu_has_work(env)) {
+ if (!env->halted || qemu_cpu_has_work(env) ||
+ (kvm_enabled() && kvm_irqchip_in_kernel())) {
return false;
}
return true;
--
1.7.1
[Qemu-devel] [PATCH 01/15] Break up user and system cpu_interrupt implementations, Jan Kiszka, 2011/03/04
[Qemu-devel] [PATCH 11/15] kvm: Rework inner loop of kvm_cpu_exec, Jan Kiszka, 2011/03/04
[Qemu-devel] [PATCH 04/15] kvm: Add in-kernel irqchip awareness to cpu_thread_is_idle,
Jan Kiszka <=
[Qemu-devel] [PATCH 09/15] kvm: x86: Synchronize PAT MSR with the kernel, Jan Kiszka, 2011/03/04
[Qemu-devel] [PATCH 02/15] Redirect cpu_interrupt to callback handler, Jan Kiszka, 2011/03/04