kvm: Drop redundant kvm_enabled from cpu_thread_is_idle
PATCH 1/1 kvm: Drop redundant kvm_enabled from cpu_thread_is_idle
This is now implied by kvm_irqchip_in_kernel.
Signed-off-by Jan Kiszka <[email protected]>
--- cpus.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
cpus.c +1 -2
@@ -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;
Signature · 1 line
1.7.3.4
Avi Kivity
AppliedQuoted 3 lines · Jan Kiszka
This is now implied by
kvm_irqchip_in_kernel.
Applied, thanks.
Signature · 1 line
error compiling committee.c: too many arguments to function