Paste #591758

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
Index: qemu-2.5+dfsg/hw/virtio/vhost.c
===================================================================
--- qemu-2.5+dfsg.orig/hw/virtio/vhost.c    2016-12-07 19:11:11.000000000 +0100
+++ qemu-2.5+dfsg/hw/virtio/vhost.c 2016-12-07 19:14:17.537084696 +0100
@@ -1029,7 +1029,7 @@
         if (!(hdev->features & (0x1ULL << VHOST_F_LOG_ALL))) {
             error_setg(&hdev->migration_blocker,
                        "Migration disabled: vhost lacks VHOST_F_LOG_ALL feature.");
-        } else if (!qemu_memfd_check()) {
+        } else if (vhost_dev_log_is_shared(hdev) && !qemu_memfd_check()) {
             error_setg(&hdev->migration_blocker,
                        "Migration disabled: failed to allocate shared memory");
         }