mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
Do not kick vcpus in TCG mode
In TCG mode, iothread and vcpus run in lock-step. So it's pointless to send a signal from qemu_cpu_kick to the vcpu thread - if we got here, the receiver already left the vcpu loop. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
c9f711a5d3
commit
eae74cf906
1 changed files with 1 additions and 1 deletions
2
cpus.c
2
cpus.c
|
@ -869,7 +869,7 @@ void qemu_cpu_kick(void *_env)
|
|||
CPUState *env = _env;
|
||||
|
||||
qemu_cond_broadcast(env->halt_cond);
|
||||
if (!env->thread_kicked) {
|
||||
if (kvm_enabled() && !env->thread_kicked) {
|
||||
qemu_cpu_kick_thread(env);
|
||||
env->thread_kicked = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue