mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
Trigger exit from cpu_exec_all on pending IO events
Except for timer events, we currently do not leave the loop over all VCPUs if an IO event was filed. That may cause unexpected IO latencies under !CONFIG_IOTHREAD in SMP scenarios. Fix it by setting the global exit_request which breaks the loop. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
This commit is contained in:
parent
1745eaaa7c
commit
38145df24c
1 changed files with 1 additions and 0 deletions
1
cpus.c
1
cpus.c
|
@ -307,6 +307,7 @@ void qemu_notify_event(void)
|
|||
if (next_cpu && env != next_cpu) {
|
||||
cpu_exit(next_cpu);
|
||||
}
|
||||
exit_request = 1;
|
||||
}
|
||||
|
||||
void qemu_mutex_lock_iothread(void) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue