mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-07 03:01:00 +00: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};
|
#my $soundhw = $conf->{soundhw} || $defaults->{soundhw};
|
||||||
#push @$cmd, '-soundhw', 'es1370';
|
#push @$cmd, '-soundhw', 'es1370';
|
||||||
#push @$cmd, '-soundhw', $soundhw if $soundhw;
|
#push @$cmd, '-soundhw', $soundhw if $soundhw;
|
||||||
|
my $pciaddr = print_pci_addr("balloon0");
|
||||||
push @$cmd, '-device', 'virtio-balloon-pci,id=balloon0' if $conf->{balloon};
|
push @$cmd, '-device', "virtio-balloon-pci,id=balloon0$pciaddr" if $conf->{balloon};
|
||||||
|
|
||||||
if ($conf->{watchdog}) {
|
if ($conf->{watchdog}) {
|
||||||
my $wdopts = parse_watchdog($conf->{watchdog});
|
my $wdopts = parse_watchdog($conf->{watchdog});
|
||||||
@ -2799,6 +2799,7 @@ sub print_pci_addr {
|
|||||||
|
|
||||||
my $res = '';
|
my $res = '';
|
||||||
my $devices = {
|
my $devices = {
|
||||||
|
balloon0 => { bus => 0, addr => 3 },
|
||||||
virtio0 => { bus => 0, addr => 10 },
|
virtio0 => { bus => 0, addr => 10 },
|
||||||
virtio1 => { bus => 0, addr => 11 },
|
virtio1 => { bus => 0, addr => 11 },
|
||||||
virtio2 => { bus => 0, addr => 12 },
|
virtio2 => { bus => 0, addr => 12 },
|
||||||
|
Loading…
Reference in New Issue
Block a user