127bba
From 4eefdf0995c1ce440f51da22906e5f761a9a9c72 Mon Sep 17 00:00:00 2001
127bba
Message-Id: <4eefdf0995c1ce440f51da22906e5f761a9a9c72@dist-git>
127bba
From: Martin Kletzander <mkletzan@redhat.com>
127bba
Date: Fri, 4 Nov 2016 10:29:48 +0100
127bba
Subject: [PATCH] qemu: Disable migration with ivshmem
127bba
127bba
It was never safe anyway and as such shouldn't have been enabled in the
127bba
first place.  Future patches will allow hot-(un)pluging of some ivshmem
127bba
devices as a workaround.
127bba
127bba
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
127bba
(cherry picked from commit d17fab69be7a73336d388b805c282037ffb29647)
127bba
127bba
https://bugzilla.redhat.com/show_bug.cgi?id=1392031
127bba
127bba
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
127bba
---
127bba
 src/qemu/qemu_migration.c | 6 ++++++
127bba
 1 file changed, 6 insertions(+)
127bba
127bba
diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
127bba
index 496a3f1..545ed1c 100644
127bba
--- a/src/qemu/qemu_migration.c
127bba
+++ b/src/qemu/qemu_migration.c
127bba
@@ -2350,6 +2350,12 @@ qemuMigrationIsAllowed(virQEMUDriverPtr driver,
127bba
                 return false;
127bba
             }
127bba
         }
127bba
+
127bba
+        if (vm->def->nshmems) {
127bba
+            virReportError(VIR_ERR_OPERATION_INVALID, "%s",
127bba
+                           _("migration with shmem device is not supported"));
127bba
+            return false;
127bba
+        }
127bba
     }
127bba
 
127bba
     return true;
127bba
-- 
127bba
2.10.2
127bba