5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-10 01:18:01 +03:00

rename scsicontroller deviceid from scsi0/1 to lsi0/1

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
This commit is contained in:
Derumier Alexandre 2012-01-20 11:42:02 +01:00 committed by Dietmar Maurer
parent b6f39da2af
commit 69b6ae0ce3

View File

@ -892,7 +892,7 @@ sub print_drivedevice_full {
}
}
$device = "scsi-$devicetype,bus=scsi$controller.0,scsi-id=$unit,drive=drive-$drive->{interface}$drive->{index},id=device-$drive->{interface}$drive->{index}";
$device = "scsi-$devicetype,bus=lsi$controller.0,scsi-id=$unit,drive=drive-$drive->{interface}$drive->{index},id=device-$drive->{interface}$drive->{index}";
} elsif ($drive->{interface} eq 'ide'){
$maxdev = 2;
my $controller = int($drive->{index} / $maxdev);
@ -2141,8 +2141,8 @@ sub config_to_command {
if ($drive->{interface} eq 'scsi') {
my $maxdev = 7;
my $controller = int($drive->{index} / $maxdev);
$pciaddr = print_pci_addr("scsi$controller");
push @$cmd, '-device', "lsi,id=scsi$controller$pciaddr" if !$scsicontroller->{$controller};
$pciaddr = print_pci_addr("lsi$controller");
push @$cmd, '-device', "lsi,id=lsi$controller$pciaddr" if !$scsicontroller->{$controller};
$scsicontroller->{$controller}=1;
}
@ -2904,8 +2904,8 @@ sub print_pci_addr {
#addr2 : first videocard
balloon0 => { bus => 0, addr => 3 },
watchdog => { bus => 0, addr => 4 },
scsi0 => { bus => 0, addr => 5 },
scsi1 => { bus => 0, addr => 6 },
lsi0 => { bus => 0, addr => 5 },
lsi1 => { bus => 0, addr => 6 },
virtio0 => { bus => 0, addr => 10 },
virtio1 => { bus => 0, addr => 11 },
virtio2 => { bus => 0, addr => 12 },