mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
iothread stops the vcpu thread via IPI
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
18a857280d
commit
8cf3f22b77
1 changed files with 2 additions and 0 deletions
2
cpus.c
2
cpus.c
|
@ -1086,9 +1086,11 @@ bool cpu_exec_all(void)
|
|||
qemu_clock_enable(vm_clock,
|
||||
(env->singlestep_enabled & SSTEP_NOTIMER) == 0);
|
||||
|
||||
#ifndef CONFIG_IOTHREAD
|
||||
if (qemu_alarm_pending()) {
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
if (cpu_can_run(env)) {
|
||||
if (kvm_enabled()) {
|
||||
r = kvm_cpu_exec(env);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue