mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-04 00:14:58 +00:00
pci related code cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
e2b42bee6d
commit
71cb8e0f87
@ -5385,11 +5385,8 @@ sub vm_start_nolock {
|
|||||||
for (my $i = 0; $i < $PVE::QemuServer::PCI::MAX_HOSTPCI_DEVICES; $i++) {
|
for (my $i = 0; $i < $PVE::QemuServer::PCI::MAX_HOSTPCI_DEVICES; $i++) {
|
||||||
my $d = parse_hostpci($conf->{"hostpci$i"});
|
my $d = parse_hostpci($conf->{"hostpci$i"});
|
||||||
next if !$d;
|
next if !$d;
|
||||||
my $pcidevices = $d->{pciid};
|
for my $pcidevice ($d->{pciid}->@*) {
|
||||||
foreach my $pcidevice (@$pcidevices) {
|
PVE::QemuServer::PCI::prepare_pci_device($vmid, $pcidevice->{id}, $i, $d->{mdev});
|
||||||
my $pciid = $pcidevice->{id};
|
|
||||||
|
|
||||||
PVE::QemuServer::PCI::prepare_pci_device($vmid, $pciid, $i, $d->{mdev});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -482,8 +482,6 @@ sub prepare_pci_device {
|
|||||||
die "can't reset PCI device '$pciid'\n"
|
die "can't reset PCI device '$pciid'\n"
|
||||||
if $info->{has_fl_reset} && !PVE::SysFSTools::pci_dev_reset($info);
|
if $info->{has_fl_reset} && !PVE::SysFSTools::pci_dev_reset($info);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
Loading…
Reference in New Issue
Block a user