[pve-devel] [PATCH manager] Add support for 16 PCI(e) devices
Dominik Csapak
d.csapak at proxmox.com
Fri Sep 6 14:45:41 CEST 2019
looks good to me
On 9/5/19 6:12 PM, Aaron Lauterer wrote:
> 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..cad29cc6 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 < 16; 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 >= 16));
> 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..438998a9 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 < 16; i++) {
> if (!me.vmconfig['hostpci' + i.toString()]) {
> me.confid = 'hostpci' + i.toString();
> break;
>
More information about the pve-devel
mailing list