From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: [PATCH uq/master] kvm: Drop redundant kvm_enabled from cpu_thread_is_idle Date: Wed, 21 Mar 2012 13:36:22 +0100 Message-ID: <4F69CB46.5050107@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: kvm , qemu-devel To: Avi Kivity , Marcelo Tosatti Return-path: Received: from thoth.sbs.de ([192.35.17.2]:20146 "EHLO thoth.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757525Ab2CUMge (ORCPT ); Wed, 21 Mar 2012 08:36:34 -0400 Sender: kvm-owner@vger.kernel.org List-ID: This is now implied by kvm_irqchip_in_kernel. Signed-off-by: Jan Kiszka --- cpus.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/cpus.c b/cpus.c index 17b055f..cf732b4 100644 --- a/cpus.c +++ b/cpus.c @@ -421,8 +421,7 @@ static bool cpu_thread_is_idle(CPUState *env) if (env->stopped || !runstate_is_running()) { return true; } - if (!env->halted || qemu_cpu_has_work(env) || - (kvm_enabled() && kvm_irqchip_in_kernel())) { + if (!env->halted || qemu_cpu_has_work(env) || kvm_irqchip_in_kernel()) { return false; } return true; -- 1.7.3.4