[pve-devel] [PATCH 51/52] fix scsi controllers pci addr
Derumier Alexandre
aderumier at odiso.com
Tue Oct 4 08:25:36 CEST 2011
---
PVE/QemuServer.pm | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 30ccb41..b332d85 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -2125,7 +2125,8 @@ sub config_to_command {
if ($drive->{interface} eq 'scsi') {
my $maxdev = 7;
my $controller = int($drive->{index} / $maxdev);
- push @$cmd, '-device', "lsi,id=scsi$controller" if !$scsicontroller->{$controller};
+ $pciaddr = print_pci_addr("scsi$controller");
+ push @$cmd, '-device', "lsi,id=scsi$controller$pciaddr" if !$scsicontroller->{$controller};
my $scsicontroller->{$controller}=1;
}
my $tmp = print_drive_full($storecfg, $vmid, $drive);
@@ -2804,6 +2805,8 @@ sub print_pci_addr {
my $devices = {
balloon0 => { bus => 0, addr => 3 },
watchdog => { bus => 0, addr => 4 },
+ scsi0 => { bus => 0, addr => 5 },
+ scsi1 => { bus => 0, addr => 6 },
virtio0 => { bus => 0, addr => 10 },
virtio1 => { bus => 0, addr => 11 },
virtio2 => { bus => 0, addr => 12 },
--
1.7.2.5
More information about the pve-devel
mailing list