From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <0100017e6f20b0f4-8e2dc40b-0274-4e06-97bc-a57c6e5da0d2-000000@amazonses.com> 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 71B2F61E2A for ; Tue, 18 Jan 2022 22:44:29 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 5D8F42FA4F for ; Tue, 18 Jan 2022 22:43:59 +0100 (CET) Received: from a48-33.smtp-out.amazonses.com (a48-33.smtp-out.amazonses.com [54.240.48.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 01D062FA42 for ; Tue, 18 Jan 2022 22:43:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=qmjwmcbdebflivjf5q7gyd5xjt54qgwu; d=nicksherlock.com; t=1642541920; h=From:To:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=fEIFzrYcmfHGjQ6fYkYZ3KZey8Z/BM3qu1kGqvAlXl0=; b=g3c7M/vnchOOB4XZ2N0UuEZubt7DB+tOgjfwO4pavoaCf8cYb5YXs4VhdK/xdB77 9IKRA+fljn0zjN8jU9a5JTubfIpheOfvGWg+vjMlLalAiY3tkr9pA79EH3RcbgSn1KU Eut3ulFXR08loCgYRHy4QoywES5j1HL1wXLDrRcbfyLw+P71ErwJXymZFEaHIlbUyNO N2QEu2DRry+d/KO1tabV3nDsOwIWEZdvOZLqghFGe7z8vY12JGF55GdIJjXoO43riyR O3w7oOsZyiX9KVqG62rlmVR1JLwpi/xEi5JJs6NHEhW2IIBgMakmjguWxTVPNfouayM Bp/R9K0lCQ== DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1642541920; h=From:To:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Feedback-ID; bh=fEIFzrYcmfHGjQ6fYkYZ3KZey8Z/BM3qu1kGqvAlXl0=; b=U8+Qm/hqwiQEQd62JtApTlrt9psKnDRTCsdqnraOwqa4bKrWWCYNrSfR4Gno6EgL kXNdr7C6xaMZ52jeZa9sm7ZMZERTQ8X3GhqH9JHm9b0jKBDPOSGv4BM38HASB8hOuYk YKKswgONr/8Z9RfC4ei8OCR9KyUOtTsQATV7mjEg= From: Nicholas Sherlock To: pve-devel@lists.proxmox.com Date: Tue, 18 Jan 2022 21:38:40 +0000 Message-ID: <0100017e6f20b0f4-8e2dc40b-0274-4e06-97bc-a57c6e5da0d2-000000@email.amazonses.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Feedback-ID: 1.us-east-1.Zun7nGVgCINWr9mhx6IDxIE7OFgiOsHC8NqBQnS80nA=:AmazonSES X-SES-Outgoing: 2022.01.18-54.240.48.33 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.000 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain HEADER_FROM_DIFFERENT_DOMAINS 0.248 From and EnvelopeFrom 2nd level mail domains are different RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust RCVD_IN_MSPIKE_H2 -0.001 Average reputation (+2) SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [nicksherlock.com] Subject: [pve-devel] [PATCH v2 pve-manager] ui: pci passthrough: editor for pci-id overrides 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: Tue, 18 Jan 2022 21:44:29 -0000 From: Nicholas Sherlock Signed-off-by: Nicholas Sherlock --- www/manager6/Toolkit.js | 2 ++ www/manager6/qemu/PCIEdit.js | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/www/manager6/Toolkit.js b/www/manager6/Toolkit.js index 1b6085a4..f69c376a 100644 --- a/www/manager6/Toolkit.js +++ b/www/manager6/Toolkit.js @@ -13,6 +13,8 @@ Ext.apply(Ext.form.field.VTypes, { IP64AddressWithSuffixList: v => PVE.Utils.verify_ip64_address_list(v, true), IP64AddressListText: gettext('Example') + ': 192.168.1.1,192.168.1.2', IP64AddressListMask: /[A-Fa-f0-9,:.; ]/, + PciIdText: gettext('Example') + ': 0x8086', + PciId: v => /^0x[0-9a-fA-F]{4}$/.test(v), }); Ext.define('PVE.form.field.Display', { diff --git a/www/manager6/qemu/PCIEdit.js b/www/manager6/qemu/PCIEdit.js index f505e34f..ec22a89c 100644 --- a/www/manager6/qemu/PCIEdit.js +++ b/www/manager6/qemu/PCIEdit.js @@ -190,6 +190,24 @@ Ext.define('PVE.qemu.PCIInputPanel', { fieldLabel: 'ROM-File', name: 'romfile', }, + { + xtype: 'textfield', + name: 'vendor-id', + fieldLabel: gettext('Set vendor ID'), + vtype: 'PciId', + allowBlank: true, + emptyText: Proxmox.Utils.defaultText, + submitEmpty: false, + }, + { + xtype: 'textfield', + name: 'device-id', + fieldLabel: gettext('Set device ID'), + vtype: 'PciId', + allowBlank: true, + emptyText: Proxmox.Utils.defaultText, + submitEmpty: false, + }, ]; me.advancedColumn2 = [ @@ -198,6 +216,24 @@ Ext.define('PVE.qemu.PCIInputPanel', { fieldLabel: 'PCI-Express', name: 'pcie', }, + { + xtype: 'textfield', + name: 'sub-vendor-id', + fieldLabel: gettext('Set sub-vendor ID'), + vtype: 'PciId', + allowBlank: true, + emptyText: Proxmox.Utils.defaultText, + submitEmpty: false, + }, + { + xtype: 'textfield', + name: 'sub-device-id', + fieldLabel: gettext('Set sub-device ID'), + vtype: 'PciId', + allowBlank: true, + emptyText: Proxmox.Utils.defaultText, + submitEmpty: false, + }, ]; me.callParent(); -- 2.34.1