]> git.proxmox.com Git - mirror_qemu.git/commit - softmmu/icount.c
replay: notify vCPU when BH is scheduled
authorPavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>
Fri, 27 May 2022 10:46:13 +0000 (13:46 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Jun 2022 07:26:53 +0000 (09:26 +0200)
commit75bbe5e5ec2867f098a31bfd553a1fb084289cc2
tree895f50a89f5f2505921e4d5d4b763527c643f0fb
parentc4b8ffcbb8531206e12cf3ad92fa90f7c80ed464
replay: notify vCPU when BH is scheduled

vCPU execution should be suspended when new BH is scheduled.
This is needed to avoid guest timeouts caused by the long cycles
of the execution. In replay mode execution may hang when
vCPU sleeps and block event comes to the queue.
This patch adds notification which wakes up vCPU or interrupts
execution of guest code.

Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
--

v2: changed first_cpu to current_cpu (suggested by Richard Henderson)
v4: moved vCPU notification to aio_bh_enqueue (suggested by Paolo Bonzini)
Message-Id: <165364837317.688121.17680519919871405281.stgit@pasha-ThinkPad-X280>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/sysemu/cpu-timers.h
softmmu/icount.c
stubs/icount.c
util/async.c