mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-10-04 22:53:08 +00:00
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:
parent
11f9264fed
commit
d8a7e9e881
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user