[pve-devel] [PATCH 04/11] add lsi scsi controllers
Dietmar Maurer
dietmar at proxmox.com
Thu Sep 8 09:20:30 CEST 2011
I am not sure if we want to always add 2 scsi controllers. It is OK to reserve the pci addr,
but I only want to add necessary hardware.
So only add scsi controller if the vm has scsi devices configured.
- Dietmar
> -----Original Message-----
> From: pve-devel-bounces at pve.proxmox.com [mailto:pve-devel-
> bounces at pve.proxmox.com] On Behalf Of Derumier Alexandre
> Sent: Mittwoch, 07. September 2011 15:35
> To: pve-devel at pve.proxmox.com
> Subject: [pve-devel] [PATCH 04/11] add lsi scsi controllers
>
>
> Signed-off-by: Derumier Alexandre <aderumier at odiso.com>
> ---
> PVE/QemuServer.pm | 7 +++++++
> 1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 29bbf86..814e9d4
> 100644
> --- a/PVE/QemuServer.pm
> +++ b/PVE/QemuServer.pm
> @@ -2024,6 +2024,13 @@ sub config_to_command {
> #push @$cmd, '-soundhw', 'es1370';
> #push @$cmd, '-soundhw', $soundhw if $soundhw;
>
> + # add scsi controllers
> + my $maxdev = 7;
> + my $nbscsicontroller = int ($MAX_SCSI_DISKS / $maxdev);
> + for (my $i = 0; $i < $nbscsicontroller; $i++) {
> + push @$cmd, '-device', "lsi,id=scsi$i";
> + }
> +
> my $vollist = [];
>
> foreach_drive($conf, sub {
> --
> 1.7.2.5
>
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
More information about the pve-devel
mailing list