[pve-devel] [PATCH manager] ui: fix 'no iommu found' message for setups
Dominik Csapak
d.csapak at proxmox.com
Fri Nov 20 15:29:13 CET 2020
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.csapak at 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
More information about the pve-devel
mailing list