[PATCH 2/2] qemu_migration: Do not automatically resume domain after I/O error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When an I/O error happens (causing a domain to be paused) during live
migration which is later cancelled by a user, trying to resume the
domain doesn't make sense.

Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
---
 src/qemu/qemu_migration.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
index 71aaa9799c..bb4d11e196 100644
--- a/src/qemu/qemu_migration.c
+++ b/src/qemu/qemu_migration.c
@@ -241,6 +241,11 @@ qemuMigrationSrcRestoreDomainState(virQEMUDriver *driver, virDomainObj *vm)
         reason == VIR_DOMAIN_PAUSED_POSTCOPY_FAILED)
         return;
 
+    if (reason == VIR_DOMAIN_PAUSED_IOERROR) {
+        VIR_DEBUG("Domain is paused due to I/O error, skipping resume");
+        return;
+    }
+
     VIR_DEBUG("Restoring pre-migration state due to migration error");
 
     /* we got here through some sort of failure; start the domain again */
-- 
2.47.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux