From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id A2BCB73B65 for ; Wed, 7 Jul 2021 13:42:08 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 96F3A2F323 for ; Wed, 7 Jul 2021 13:41:38 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 943F52F317 for ; Wed, 7 Jul 2021 13:41:37 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 6236C40098 for ; Wed, 7 Jul 2021 13:41:37 +0200 (CEST) From: Dominik Csapak To: pve-devel@lists.proxmox.com Date: Wed, 7 Jul 2021 13:41:36 +0200 Message-Id: <20210707114136.4033819-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.667 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH manager] fix #3490: show more pci devices by default X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jul 2021 11:42:08 -0000 we filtered out devices which belong into the 'Generic System Peripheral' category, but this can contain actual useful pci devices users want to pass through, so simply do not filter it by default. Signed-off-by: Dominik Csapak --- PVE/API2/Hardware/PCI.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/PVE/API2/Hardware/PCI.pm b/PVE/API2/Hardware/PCI.pm index b3375ab9..d9c5b37e 100644 --- a/PVE/API2/Hardware/PCI.pm +++ b/PVE/API2/Hardware/PCI.pm @@ -10,7 +10,7 @@ use PVE::SysFSTools; use base qw(PVE::RESTHandler); -my $default_class_blacklist = "05;06;08;0b"; +my $default_class_blacklist = "05;06;0b"; __PACKAGE__->register_method ({ name => 'pciscan', @@ -33,8 +33,7 @@ __PACKAGE__->register_method ({ optional => 1, description => "A list of blacklisted PCI classes, which will ". "not be returned. Following are filtered by ". - "default: Memory Controller (05), Bridge (06), ". - "Generic System Peripheral (08) and ". + "default: Memory Controller (05), Bridge (06) and ". "Processor (0b).", }, verbose => { -- 2.30.2