[pve-devel] [PATCH] Fix balloon0 device pci addr

Dietmar Maurer dietmar at proxmox.com
Mon Oct 3 07:46:07 CEST 2011


commited, thanks.

- 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: Freitag, 30. September 2011 13:10
> To: pve-devel at pve.proxmox.com
> Subject: [pve-devel] [PATCH] Fix balloon0 device pci addr
> 
> 
> Signed-off-by: Derumier Alexandre <aderumier at odiso.com>
> ---
>  PVE/QemuServer.pm |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 450b57d..27bccc7
> 100644
> --- a/PVE/QemuServer.pm
> +++ b/PVE/QemuServer.pm
> @@ -2098,8 +2098,8 @@ sub config_to_command {
>      #my $soundhw = $conf->{soundhw} || $defaults->{soundhw};
>      #push @$cmd, '-soundhw', 'es1370';
>      #push @$cmd, '-soundhw', $soundhw if $soundhw;
> -
> -    push @$cmd, '-device', 'virtio-balloon-pci,id=balloon0' if $conf->{balloon};
> +    my $pciaddr = print_pci_addr("balloon0");
> +    push @$cmd, '-device', "virtio-balloon-pci,id=balloon0$pciaddr" if
> + $conf->{balloon};
> 
>      if ($conf->{watchdog}) {
>  	my $wdopts = parse_watchdog($conf->{watchdog});
> @@ -2799,6 +2799,7 @@ sub print_pci_addr {
> 
>      my $res = '';
>      my $devices = {
> +	balloon0 => { bus => 0, addr => 3 },
>  	virtio0 => { bus => 0, addr => 10 },
>  	virtio1 => { bus => 0, addr => 11 },
>  	virtio2 => { bus => 0, addr => 12 },
> --
> 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