sometimes, the first device in the pci api call is not in a separate iommu group (see e.g. [0]), but it is active and should work
instead of testing the first, test all, and only show the message if no device has a set iommu group Signed-off-by: Dominik Csapak <d.csa...@proxmox.com> --- www/manager6/qemu/PCIEdit.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/www/manager6/qemu/PCIEdit.js b/www/manager6/qemu/PCIEdit.js index b10326ba..72a355d0 100644 --- a/www/manager6/qemu/PCIEdit.js +++ b/www/manager6/qemu/PCIEdit.js @@ -93,8 +93,7 @@ Ext.define('PVE.qemu.PCIInputPanel', { return; } - var first = records[0]; - if (first.data.iommugroup === -1) { + if (records.every((val) => val.data.iommugroup === -1)) { // no iommu groups var warning = Ext.create('Ext.form.field.Display', { columnWidth: 1, -- 2.20.1 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel