diff options
author | Simon Rettberg | 2023-11-10 15:48:41 +0100 |
---|---|---|
committer | Simon Rettberg | 2023-11-10 15:48:41 +0100 |
commit | 0119e6bb486cbf1df108ca7161f8e3b2d20a4377 (patch) | |
tree | d6b66189d4ac01dcc918812fcf226c52847b05cc | |
parent | [bwlp-stage4-tweaks] Add daily ntp sync script (diff) | |
download | mltk-0119e6bb486cbf1df108ca7161f8e3b2d20a4377.tar.gz mltk-0119e6bb486cbf1df108ca7161f8e3b2d20a4377.tar.xz mltk-0119e6bb486cbf1df108ca7161f8e3b2d20a4377.zip |
[qemu] Don't check for IOMMU if not using PCI passthrough
-rw-r--r-- | core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/configuration/TransformationSpecificQemuPciPassthrough.java | 3 |
1 files changed, 3 insertions, 0 deletions
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<HostdevPciDeviceAddress> 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!"; |