]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qdev-monitor.c
io: fix FD socket handling in DNS lookup
[mirror_qemu.git] / qdev-monitor.c
index 549f45f06652d44f00116b36eaf8163eb0919e0b..5f2fcdfc455113bb8076dfe75ec2e8b177e60ca3 100644 (file)
@@ -29,7 +29,6 @@
 #include "qemu/error-report.h"
 #include "qemu/help_option.h"
 #include "sysemu/block-backend.h"
-#include "migration/migration.h"
 
 /*
  * Aliases were a bad idea from the start.  Let's keep them
@@ -579,14 +578,6 @@ DeviceState *qdev_device_add(QemuOpts *opts, Error **errp)
         return NULL;
     }
 
-    if (only_migratable) {
-        if (dc->vmsd->unmigratable) {
-            error_setg(errp, "Device %s is not migratable, but "
-                       "--only-migratable was specified", driver);
-            return NULL;
-        }
-    }
-
     /* find bus */
     path = qemu_opt_get(opts, "bus");
     if (path != NULL) {