mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-24 22:41:06 +00:00
fix watchdog pci addr
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
This commit is contained in:
parent
b78ebef7e7
commit
0a40e8eab5
@ -2104,7 +2104,9 @@ sub config_to_command {
|
|||||||
|
|
||||||
if ($conf->{watchdog}) {
|
if ($conf->{watchdog}) {
|
||||||
my $wdopts = parse_watchdog($conf->{watchdog});
|
my $wdopts = parse_watchdog($conf->{watchdog});
|
||||||
push @$cmd, '-watchdog', $wdopts->{model} || 'i6300esb';
|
$pciaddr = print_pci_addr("watchdog");
|
||||||
|
my $watchdog = $wdopts->{model} || 'i6300esb';
|
||||||
|
push @$cmd, '-device', "$watchdog$pciaddr";
|
||||||
push @$cmd, '-watchdog-action', $wdopts->{action} if $wdopts->{action};
|
push @$cmd, '-watchdog-action', $wdopts->{action} if $wdopts->{action};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2801,6 +2803,7 @@ sub print_pci_addr {
|
|||||||
my $res = '';
|
my $res = '';
|
||||||
my $devices = {
|
my $devices = {
|
||||||
balloon0 => { bus => 0, addr => 3 },
|
balloon0 => { bus => 0, addr => 3 },
|
||||||
|
watchdog => { bus => 0, addr => 4 },
|
||||||
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