mirror of https://github.com/xqemu/xqemu.git
kvm: Drop redundant kvm_enabled from cpu_thread_is_idle
This is now implied by kvm_irqchip_in_kernel. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
b3c09bde48
commit
56b9ead234
3
cpus.c
3
cpus.c
|
@ -441,8 +441,7 @@ static bool cpu_thread_is_idle(CPUArchState *env)
|
||||||
if (env->stopped || !runstate_is_running()) {
|
if (env->stopped || !runstate_is_running()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (!env->halted || qemu_cpu_has_work(env) ||
|
if (!env->halted || qemu_cpu_has_work(env) || kvm_irqchip_in_kernel()) {
|
||||||
(kvm_enabled() && kvm_irqchip_in_kernel())) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue