]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
record/replay: fix race condition on test_aarch64_reverse_debug
authorVladimir Lukianov <1844144@gmail.com>
Tue, 3 Jun 2025 12:54:59 +0000 (14:54 +0200)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 7 Oct 2025 08:15:45 +0000 (09:15 +0100)
Ensures EVENT_INSTRUCTION written to replay.bin before EVENT_SHUTDOWN_HOST_QMP

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2921
Signed-off-by: Vladimir Lukianov <1844144@gmail.com>
Message-ID: <20250603125459.17688-1-1844144@gmail.com>
[AJB: fix re-base file mode]
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
replay/replay.c
tests/functional/aarch64/test_reverse_debug.py

index a3e24c967ae9f3de182ae87c2e02333c86f30baf..b2121788c1d72315033d00cac6916507ba8aabc6 100644 (file)
@@ -263,6 +263,8 @@ bool replay_has_interrupt(void)
 
 void replay_shutdown_request(ShutdownCause cause)
 {
+    replay_save_instructions();
+
     if (replay_mode == REPLAY_MODE_RECORD) {
         g_assert(replay_mutex_locked());
         replay_put_event(EVENT_SHUTDOWN + cause);
index 906f10aec55651081d216b091e11951e502b57e3..ec3348c96d88a52b6d644b989643511a8de65a46 100755 (executable)
@@ -25,7 +25,6 @@ class ReverseDebugging_AArch64(ReverseDebugging):
          'releases/29/Everything/aarch64/os/images/pxeboot/vmlinuz'),
         '7e1430b81c26bdd0da025eeb8fbd77b5dc961da4364af26e771bd39f379cbbf7')
 
-    @skipFlakyTest("https://gitlab.com/qemu-project/qemu/-/issues/2921")
     def test_aarch64_virt(self):
         self.set_machine('virt')
         self.cpu = 'cortex-a53'