]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/arm: make HV_EXIT_REASON_CANCELED leave hvf_arch_vcpu_exec
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 9 Dec 2025 09:24:58 +0000 (09:24 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 9 Dec 2025 16:21:35 +0000 (16:21 +0000)
Without this we can spin tightly in the main HVF dispatch loop and
never release the lock long enough. As a result the HMP never gets to
run and shutting down the system deadlocks.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3228
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20251209092459.1058313-4-alex.bennee@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
target/arm/hvf/hvf.c

index 8e2940217a64d2eaa64ab4820e352a07de37fb5a..8288b605299c6974fa91522f3f59ecdd188553a7 100644 (file)
@@ -2020,6 +2020,7 @@ static int hvf_handle_vmexit(CPUState *cpu, hv_vcpu_exit_t *exit)
         break;
     case HV_EXIT_REASON_CANCELED:
         /* we got kicked, no exit to process */
+        ret = -1;
         break;
     default:
         g_assert_not_reached();