From 215e79c01c4e6f766eb9add56c56453e9ea1d948 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Wed, 24 Apr 2013 22:24:12 +0200 Subject: KVM: Don't assume that mpstate exists with in-kernel PIC always On PPC, we don't support MP state. So far it's not necessary and I'm not convinced yet that we really need to support it ever. However, the current idle logic in QEMU assumes that an in-kernel PIC also means we support MP state. This assumption is not true anymore. Let's split up the two cases into two different variables. That way PPC can expose an in-kernel PIC, while not implementing MP state. Signed-off-by: Alexander Graf CC: Jan Kiszka --- cpus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpus.c') diff --git a/cpus.c b/cpus.c index 86571f913c..20958e5a59 100644 --- a/cpus.c +++ b/cpus.c @@ -71,7 +71,7 @@ static bool cpu_thread_is_idle(CPUState *cpu) return true; } if (!cpu->halted || qemu_cpu_has_work(cpu) || - kvm_async_interrupts_enabled()) { + kvm_halt_in_kernel()) { return false; } return true; -- cgit v1.2.1