From d8a7e9e881e29c899920657f98a0047d9d63abed Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Mon, 28 Feb 2022 14:48:20 +0100 Subject: [PATCH] PCI: allow longer pci domains some systems[0] have pci domains longer than the default ('0000') of 4 characters, so change the regex to allow at least 4. 0: https://forum.proxmox.com/threads/problem-with-gpu-passthrough-in-a-virtual-machine.105720/ Signed-off-by: Dominik Csapak --- 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 70987d83..23fe508e 100644 --- a/PVE/QemuServer/PCI.pm +++ b/PVE/QemuServer/PCI.pm @@ -18,7 +18,7 @@ parse_hostpci our $MAX_HOSTPCI_DEVICES = 16; -my $PCIRE = qr/(?:[a-f0-9]{4}:)?[a-f0-9]{2}:[a-f0-9]{2}(?:\.[a-f0-9])?/; +my $PCIRE = qr/(?:[a-f0-9]{4,}:)?[a-f0-9]{2}:[a-f0-9]{2}(?:\.[a-f0-9])?/; my $hostpci_fmt = { host => { default_key => 1,