From dc459917acda9dad8f074f177bee7d35ce4bfe2b Mon Sep 17 00:00:00 2001 From: GQX <2290721782@qq.com> Date: Wed, 24 Dec 2025 16:49:33 +0800 Subject: [PATCH] Migration/urma: enable autostart during urma migration --- ...nable-autostart-during-urma-migratio.patch | 32 +++++++++++++++++++ qemu.spec | 6 +++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 Migration-urma-enable-autostart-during-urma-migratio.patch diff --git a/Migration-urma-enable-autostart-during-urma-migratio.patch b/Migration-urma-enable-autostart-during-urma-migratio.patch new file mode 100644 index 00000000..9379c1e7 --- /dev/null +++ b/Migration-urma-enable-autostart-during-urma-migratio.patch @@ -0,0 +1,32 @@ +From a26d18c7b9f9723c37bfc7a459e1ec873f449ae5 Mon Sep 17 00:00:00 2001 +From: eillon +Date: Tue, 23 Dec 2025 16:05:51 +0800 +Subject: [PATCH] Migration/urma: enable autostart during urma migration + +URMA clean up during migration_incoming_state_destroy takes +a long time, which affects the migration downtime. +Enable autostart during urma migration to move the cleanup +action outside migration downtime. + +Signed-off-by: eillon +--- + migration/migration.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/migration/migration.c b/migration/migration.c +index 38ef47b244..96ebe5527b 100644 +--- a/migration/migration.c ++++ b/migration/migration.c +@@ -720,6 +720,9 @@ process_incoming_migration_co(void *opaque) + true)) { + goto fail; + } ++ ++ /* enable autostart during urma migration to reduce downtime */ ++ autostart = true; + } + #endif + +-- +2.50.1.windows.1 + diff --git a/qemu.spec b/qemu.spec index 4b059d09..7936c5d4 100644 --- a/qemu.spec +++ b/qemu.spec @@ -3,7 +3,7 @@ Name: qemu Version: 8.2.0 -Release: 57 +Release: 58 Epoch: 11 Summary: QEMU is a generic and open source machine emulator and virtualizer License: GPLv2 and BSD and MIT and CC-BY-SA-4.0 @@ -1211,6 +1211,7 @@ Patch1194: virtio-balloon-delete-unuse-functions.patch Patch1195: CCA-fixed-start-realm-vm-failed.patch Patch1196: ub-fix-some-check-msgq-process.patch Patch1197: ub-get-msgq-depth-from-inited-msgq-info.patch +Patch1198: Migration-urma-enable-autostart-during-urma-migratio.patch BuildRequires: flex BuildRequires: gcc @@ -1989,6 +1990,9 @@ getent passwd qemu >/dev/null || \ /bin/systemctl try-restart systemd-binfmt.service &>/dev/null || : %changelog +* Wed Dec 24 2025 eillon 11:8.2.0-58 +- Migration/urma: enable autostart during urmamigration + * Mon Dec 15 2025 Jinhua Cao 11:8.2.0-57 - ub fix some check msgq process - ub get msgq depth from inited msgq info -- Gitee