]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/device-hotplug.c
Support default block interfaces per QEMUMachine
[mirror_qemu.git] / hw / device-hotplug.c
index 6d9c080381edc363100479af873e2efd6ea04557..839b9ea1d45a68ac2bb4cd2833d8dc08b60a4f6f 100644 (file)
@@ -39,7 +39,7 @@ DriveInfo *add_init_drive(const char *optstr)
     if (!opts)
         return NULL;
 
-    dinfo = drive_init(opts, current_machine->use_scsi);
+    dinfo = drive_init(opts, current_machine->block_default_type);
     if (!dinfo) {
         qemu_opts_del(opts);
         return NULL;