Revision c2cc47a4 hw/pci-hotplug.c
b/hw/pci-hotplug.c | ||
---|---|---|
70 | 70 |
drive_idx = add_init_drive(opts); |
71 | 71 |
if (drive_idx < 0) |
72 | 72 |
return; |
73 |
if (drives_table[drive_idx].devaddr) { |
|
74 |
monitor_printf(mon, "Parameter addr not supported\n"); |
|
75 |
return; |
|
76 |
} |
|
73 | 77 |
type = drives_table[drive_idx].type; |
74 | 78 |
bus = drive_get_max_bus (type); |
75 | 79 |
|
... | ... | |
116 | 120 |
drive_idx = add_init_drive(opts); |
117 | 121 |
if (drive_idx < 0) |
118 | 122 |
return NULL; |
123 |
if (drives_table[drive_idx].devaddr) { |
|
124 |
monitor_printf(mon, "Parameter addr not supported\n"); |
|
125 |
return NULL; |
|
126 |
} |
|
119 | 127 |
} else if (type == IF_VIRTIO) { |
120 | 128 |
monitor_printf(mon, "virtio requires a backing file/device.\n"); |
121 | 129 |
return NULL; |
Also available in: Unified diff