this was the only user, and it's easy enough

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

diff --git a/PVE/QemuServer/PCI.pm b/PVE/QemuServer/PCI.pm
index 1673041b..7ff9cad7 100644
--- a/PVE/QemuServer/PCI.pm
+++ b/PVE/QemuServer/PCI.pm
@@ -3,6 +3,7 @@ package PVE::QemuServer::PCI;
 use warnings;
 use strict;
 
+use PVE::INotify;
 use PVE::JSONSchema;
 use PVE::Mapping::PCI;
 use PVE::SysFSTools;
@@ -429,7 +430,9 @@ sub parse_hostpci {
 
     if ($mapping) {
        # we have no ordinary pci id, must be a mapping
-       my $devices = PVE::Mapping::PCI::find_on_current_node($mapping);
+       my $config = PVE::Mapping::PCI::config();
+       my $node = PVE::INotify::nodename();
+       my $devices = PVE::Mapping::PCI::get_node_mapping($config, $mapping, 
$node);
        die "PCI device mapping not found for '$mapping'\n" if !$devices || 
!scalar($devices->@*);
 
        for my $device ($devices->@*) {
-- 
2.39.2



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

Reply via email to