mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-03-12 20:58:26 +03:00
Fix balloon0 device pci addr
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
This commit is contained in:
parent
32baffb4e0
commit
13b5a75337
@ -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 },
|
||||
|
Loading…
x
Reference in New Issue
Block a user