[pve-devel] [PATCH manager] Add support for up to 10 PCI devices

Aaron Lauterer a.lauterer at proxmox.com
Mon Sep 2 12:50:24 CEST 2019


Signed-off-by: Aaron Lauterer <a.lauterer at proxmox.com>
---
 www/manager6/qemu/HardwareView.js | 4 ++--
 www/manager6/qemu/PCIEdit.js      | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/manager6/qemu/HardwareView.js b/www/manager6/qemu/HardwareView.js
index 606c66e5..28384d37 100644
--- a/www/manager6/qemu/HardwareView.js
+++ b/www/manager6/qemu/HardwareView.js
@@ -257,7 +257,7 @@ Ext.define('PVE.qemu.HardwareView', {
 		header: gettext('USB Device') + ' (' + confid + ')'
 	    };
 	}
-	for (i = 0; i < 4; i++) {
+	for (i = 0; i < 10; i++) {
 	    confid = "hostpci" + i.toString();
 	    rows[confid] = {
 		group: 30,
@@ -578,7 +578,7 @@ Ext.define('PVE.qemu.HardwareView', {
 	    var noVMConfigHWTypePerm = !caps.vms['VM.Config.HWType'];
 
 	    me.down('#addusb').setDisabled(noSysConsolePerm || (usbcount >= 5));
-	    me.down('#addpci').setDisabled(noSysConsolePerm || (pcicount >= 4));
+	    me.down('#addpci').setDisabled(noSysConsolePerm || (pcicount >= 10));
 	    me.down('#addaudio').setDisabled(noVMConfigHWTypePerm || (audiocount >= 1));
 	    me.down('#addci').setDisabled(noSysConsolePerm || hasCloudInit);
 
diff --git a/www/manager6/qemu/PCIEdit.js b/www/manager6/qemu/PCIEdit.js
index 85d1f4ce..27646df6 100644
--- a/www/manager6/qemu/PCIEdit.js
+++ b/www/manager6/qemu/PCIEdit.js
@@ -36,7 +36,7 @@ Ext.define('PVE.qemu.PCIInputPanel', {
 	var ret = {};
 	if(!me.confid) {
 	    var i;
-	    for (i = 0; i < 5; i++) {
+	    for (i = 0; i < 10; i++) {
 		if (!me.vmconfig['hostpci' +  i.toString()]) {
 		    me.confid = 'hostpci' + i.toString();
 		    break;
-- 
2.20.1





More information about the pve-devel mailing list