hvm ioemu: Do not initialise the LSI SCSI interface if no SCSI discs

are attached to the guest.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-04-25 18:12:03 +01:00
1 parent 369e63f97c
commit 135a488c83
1 file changed
+5 -4
+5 -4
View File
@@ -923,11 +923,12 @@ static void pc_init1(uint64_t ram_size, int vga_ram_size, char *boot_device,
#else
if (pci_enabled) {
void *scsi;
scsi = lsi_scsi_init(pci_bus, -1);
for (i = 0; i < MAX_SCSI_DISKS ; i++) {
if (bs_table[i + MAX_DISKS])
lsi_scsi_attach(scsi, bs_table[i + MAX_DISKS], -1);
if (!bs_table[i + MAX_DISKS])
continue;
if (!scsi)
scsi = lsi_scsi_init(pci_bus, -1);
lsi_scsi_attach(scsi, bs_table[i + MAX_DISKS], -1);
}
}
#endif /* !CONFIG_DM */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.