Revision 751c6a17 hw/xen_machine_pv.c
b/hw/xen_machine_pv.c | ||
---|---|---|
40 | 40 |
const char *cpu_model) |
41 | 41 |
{ |
42 | 42 |
CPUState *env; |
43 |
int i, index; |
|
43 |
DriveInfo *dinfo; |
|
44 |
int i; |
|
44 | 45 |
|
45 | 46 |
/* Initialize a dummy CPU */ |
46 | 47 |
if (cpu_model == NULL) { |
... | ... | |
90 | 91 |
|
91 | 92 |
/* configure disks */ |
92 | 93 |
for (i = 0; i < 16; i++) { |
93 |
index = drive_get_index(IF_XEN, 0, i);
|
|
94 |
if (index == -1)
|
|
94 |
dinfo = drive_get(IF_XEN, 0, i);
|
|
95 |
if (!dinfo)
|
|
95 | 96 |
continue; |
96 |
xen_config_dev_blk(drives_table + index);
|
|
97 |
xen_config_dev_blk(dinfo);
|
|
97 | 98 |
} |
98 | 99 |
|
99 | 100 |
/* configure nics */ |
Also available in: Unified diff