replay: notify the main loop when there are no instructions
commit255ae6e2158c743717bed76c9a2365ee4bcd326e
authorPavel Dovgalyuk <Pavel.Dovgaluk@gmail.com>
Fri, 22 May 2020 06:47:58 +0000 (22 09:47 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 26 Jun 2020 10:45:30 +0000 (26 06:45 -0400)
treedc7f618e37866f5cf1b402e29cb7e59b8d2de094
parent5d971f9e672507210e77d020d89e0e89165c8fc9
replay: notify the main loop when there are no instructions

When QEMU is executed in console mode without any external event sources,
main loop may sleep for a very long time. But in case of replay
there is another event source - event log.
This patch adds main loop notification when the vCPU loop has nothing
to do and main loop should process the inputs from the event log.

Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Message-Id: <159013007895.28110.2020104406699709721.stgit@pasha-ThinkPad-X280>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
cpus.c