From 7f432214abe70d494546ac25f56c5d482fd82743 Mon Sep 17 00:00:00 2001 From: Jiri Denemark Date: Wed, 11 May 2022 15:03:30 +0200 Subject: [PATCH] qemu: Make migration events mandatory All QEMU versions we care about support migration events and we should be able to enable the associated capability when connecting to the monitor. Failure to do so is thus considered fatal now. Signed-off-by: Jiri Denemark Reviewed-by: Peter Krempa --- src/qemu/qemu_migration_params.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/qemu/qemu_migration_params.c b/src/qemu/qemu_migration_params.c index ec288b9fa1..26754f03f8 100644 --- a/src/qemu/qemu_migration_params.c +++ b/src/qemu/qemu_migration_params.c @@ -1433,10 +1433,8 @@ qemuMigrationCapsCheck(virQEMUDriver *driver, qemuDomainObjExitMonitor(vm); - if (rc < 0) { - virResetLastError(); - VIR_DEBUG("Cannot enable migration events"); - } + if (rc < 0) + return -1; /* Migration events capability must always be enabled, clearing it from * migration capabilities bitmap makes sure it won't be touched anywhere -- 2.47.2