summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-06-27 14:40:48 +0200
committerSimon Rettberg2024-06-27 14:40:48 +0200
commit0d324e3923dbda5073eb26ec4dd26e9511c1457e (patch)
treed8e4e1d5109369e5da37c91bc7cf16f1ec851c6b
parent[pam-bwidm] Validate organization suffix for browser/qrcode login (diff)
downloadmltk-0d324e3923dbda5073eb26ec4dd26e9511c1457e.tar.gz
mltk-0d324e3923dbda5073eb26ec4dd26e9511c1457e.tar.xz
mltk-0d324e3923dbda5073eb26ec4dd26e9511c1457e.zip
[qemu] Check for alternate way to make an EFI VM
Fixes #3960
-rw-r--r--core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/configuration/TransformationSpecificQemuMdevPassthroughIntel.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/configuration/TransformationSpecificQemuMdevPassthroughIntel.java b/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/configuration/TransformationSpecificQemuMdevPassthroughIntel.java
index 303befab..87206714 100644
--- a/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/configuration/TransformationSpecificQemuMdevPassthroughIntel.java
+++ b/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/configuration/TransformationSpecificQemuMdevPassthroughIntel.java
@@ -11,6 +11,7 @@ import org.openslx.libvirt.domain.device.Video;
import org.openslx.runvirt.plugin.qemu.cmdln.CommandLineArgs;
import org.openslx.runvirt.plugin.qemu.virtualization.LibvirtHypervisorQemu;
import org.openslx.runvirt.virtualization.LibvirtHypervisorException;
+import org.openslx.util.Util;
import org.openslx.virtualization.configuration.transformation.TransformationException;
import org.openslx.virtualization.configuration.transformation.TransformationSpecific;
@@ -116,7 +117,7 @@ public class TransformationSpecificQemuMdevPassthroughIntel
mdevDevice.setMemoryFramebufferOn( true );
mdevDevice.setSource( mdevDeviceAddress );
- if ( config.getOsLoader() != null && !config.getOsLoader().isEmpty() ) {
+ if ( !Util.isEmptyString( config.getOsLoader() ) || "efi".equalsIgnoreCase( config.getOsFirmware() ) ) {
// set Intel specific rom file for GVT-g if UEFI loader is used
config.addGvtg( INTEL_GVT_G_UEFI_ROMFILE );
} else {