by giving the mapping config to assert_valid, not only the specific mapping

Signed-off-by: Dominik Csapak <d.csa...@proxmox.com>
---
 PVE/QemuServer/PCI.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/QemuServer/PCI.pm b/PVE/QemuServer/PCI.pm
index d6655b76..ad6d5ff6 100644
--- a/PVE/QemuServer/PCI.pm
+++ b/PVE/QemuServer/PCI.pm
@@ -444,7 +444,7 @@ sub parse_hostpci {
        my $devices = get_current_node_mapping($config, $mapping);
 
        for my $device ($devices->@*) {
-           eval { PVE::Mapping::PCI::assert_valid($mapping, $device) };
+           eval { PVE::Mapping::PCI::assert_valid($mapping, $device, 
$config->{ids}->{$mapping}) };
            die "PCI device mapping invalid (hardware probably changed): $@\n" 
if $@;
            push $alternatives->@*, [split(/;/, $device->{path})];
        }
-- 
2.39.5



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to