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 <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2022-02-28 14:48:20 +01:00 committed by Thomas Lamprecht
parent 11f9264fed
commit d8a7e9e881

View File

@ -18,7 +18,7 @@ parse_hostpci
our $MAX_HOSTPCI_DEVICES = 16; 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 = { my $hostpci_fmt = {
host => { host => {
default_key => 1, default_key => 1,