From 0119e6bb486cbf1df108ca7161f8e3b2d20a4377 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 10 Nov 2023 15:48:41 +0100 Subject: [qemu] Don't check for IOMMU if not using PCI passthrough --- .../qemu/configuration/TransformationSpecificQemuPciPassthrough.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/configuration/TransformationSpecificQemuPciPassthrough.java b/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/configuration/TransformationSpecificQemuPciPassthrough.java index 1a20448f..798ddfec 100644 --- a/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/configuration/TransformationSpecificQemuPciPassthrough.java +++ b/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/configuration/TransformationSpecificQemuPciPassthrough.java @@ -199,6 +199,9 @@ public class TransformationSpecificQemuPciPassthrough final List pciDeviceAddresses = TransformationSpecificQemuPciPassthrough .validateParseNvidiaPciIds( args.getVmNvGpuIds0() ); + if ( pciDeviceAddresses.isEmpty() ) + return; // Nothing to do + // check if IOMMU support is available on the host if ( !this.getCapabilities().hasHostIommuSupport() ) { final String errorMsg = "IOMMU support is not available on the hypervisor but required for GPU passthrough!"; -- cgit v1.2.3-55-g7522