]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Disable migration with ivshmem
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 20 Sep 2016 09:24:49 +0000 (11:24 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 12 Oct 2016 11:08:28 +0000 (13:08 +0200)
It was never safe anyway and as such shouldn't have been enabled in the
first place.  Future patches will allow hot-(un)pluging of some ivshmem
devices as a workaround.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_migration.c

index 1e7abc53f5b037cc079cbd9b18fccfcf6e0e018e..1c4a80c3a49237cad1d17a6f086f5f9fcd6f6d15 100644 (file)
@@ -2352,6 +2352,12 @@ qemuMigrationIsAllowed(virQEMUDriverPtr driver,
                 return false;
             }
         }
+
+        if (vm->def->nshmems) {
+            virReportError(VIR_ERR_OPERATION_INVALID, "%s",
+                           _("migration with shmem device is not supported"));
+            return false;
+        }
     }
 
     return true;