From 5b8528f87c8a11260970ff66d4dc186da2103a06 Mon Sep 17 00:00:00 2001 From: leo-ee Date: Wed, 27 Aug 2025 18:16:45 +0800 Subject: [PATCH] [bugfix] fix csv2/csv3 migration issue at the time of csv2/csv3 migration, csv2/csv3 vm's run state is runstate_inmigration. csv2/csv3 is not resettable, so the code will take else branch, However, vm's run state is inmigration, the code will assert here. Therefore, runstate_check(RUN_STATE_INMIGRATE) must be added inside the assert. --- system/runstate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/runstate.c b/system/runstate.c index cbdac6597a..1e758909b6 100644 --- a/system/runstate.c +++ b/system/runstate.c @@ -518,7 +518,7 @@ void qemu_system_reset(ShutdownCause reason) if (cpus_are_resettable()) { cpu_synchronize_all_post_reset(); } else { - assert(runstate_check(RUN_STATE_PRELAUNCH)); + assert(runstate_check(RUN_STATE_PRELAUNCH) || runstate_check(RUN_STATE_INMIGRATE)); } vm_set_suspended(false); -- Gitee