1f881ea4 | 11-Dec-2023 |
Alex Bennée <alex.bennee@linaro.org> |
replay: stop us hanging in rr_wait_io_event
A lot of the hang I see are when we end up spinning in rr_wait_io_event for an event that will never come in playback. As a new check functions which can
replay: stop us hanging in rr_wait_io_event
A lot of the hang I see are when we end up spinning in rr_wait_io_event for an event that will never come in playback. As a new check functions which can see if we are in PLAY mode and kick us us the wait function so the event can be processed.
This fixes most of the failures in replay_kernel.py
Fixes: https://gitlab.com/qemu-project/qemu/-/issues/2013 Cc: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20231211091346.14616-12-alex.bennee@linaro.org>
show more ...
|
fd84325f | 11-Dec-2023 |
Alex Bennée <alex.bennee@linaro.org> |
replay/replay-char: use report_sync_error
Now we have a centralised report function use it for missing character events.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
replay/replay-char: use report_sync_error
Now we have a centralised report function use it for missing character events.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20231211091346.14616-11-alex.bennee@linaro.org>
show more ...
|
dcda7321 | 11-Dec-2023 |
Alex Bennée <alex.bennee@linaro.org> |
replay: introduce a central report point for sync errors
Figuring out why replay has failed is tricky at the best of times. Lets centralise the reporting of a replay sync error and add a little bit
replay: introduce a central report point for sync errors
Figuring out why replay has failed is tricky at the best of times. Lets centralise the reporting of a replay sync error and add a little bit of extra information to help with debugging.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20231211091346.14616-10-alex.bennee@linaro.org>
show more ...
|
2b7a58b6 | 11-Dec-2023 |
Alex Bennée <alex.bennee@linaro.org> |
replay: make has_unread_data a bool
For clarity given it only has two states.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru> Review
replay: make has_unread_data a bool
For clarity given it only has two states.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20231211091346.14616-9-alex.bennee@linaro.org>
show more ...
|
808eab62 | 11-Dec-2023 |
Alex Bennée <alex.bennee@linaro.org> |
replay: add proper kdoc for ReplayState
Remove the non-standard comment formatting and move the descriptions into a proper kdoc comment.
Reviewed-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru> Rev
replay: add proper kdoc for ReplayState
Remove the non-standard comment formatting and move the descriptions into a proper kdoc comment.
Reviewed-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20231211091346.14616-8-alex.bennee@linaro.org>
show more ...
|
3e21408b | 27-May-2022 |
Pavel Dovgalyuk <pavel.dovgalyuk@ispras.ru> |
replay: simplify async event processing
This patch joins replay event id and async event id into single byte in the log. It makes processing a bit faster and log a bit smaller.
Signed-off-by: Pavel
replay: simplify async event processing
This patch joins replay event id and async event id into single byte in the log. It makes processing a bit faster and log a bit smaller.
Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
--
v2: minor enum fixes (suggested by Richard Henderson) Message-Id: <165364838393.688121.8191379555130516329.stgit@pasha-ThinkPad-X280> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
46967b1a | 01-Apr-2021 |
Pavel Dovgalyuk <pavel.dovgalyuk@ispras.ru> |
replay: notify CPU on event
This patch enables vCPU notification to wake it up when new async event comes in replay mode.
The motivation of this patch is the following. Consider recorded block asyn
replay: notify CPU on event
This patch enables vCPU notification to wake it up when new async event comes in replay mode.
The motivation of this patch is the following. Consider recorded block async event. It is saved into the log with one of the checkpoints. This checkpoint may be passed in vCPU loop. In replay mode when this async event is read from the log, and block thread task is not finished yet, vCPU thread goes to sleep. That is why this patch adds waking up the vCPU to process this finished event.
Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru> Message-Id: <161726519158.1476949.7614181684462079836.stgit@pasha-ThinkPad-X280> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|