diff options
author | Manuel Bentele | 2021-11-23 13:55:38 +0100 |
---|---|---|
committer | Manuel Bentele | 2021-11-23 13:55:38 +0100 |
commit | cb75259e3325281d289c80287f783b8ac0d3835e (patch) | |
tree | e8826acc5aac9f5c3b931058540164afb0417aee /core/modules/qemu | |
parent | [pulseaudio] Add script to select profile based on SLX_PREFERRED_SOUND_OUTPUT (diff) | |
download | mltk-cb75259e3325281d289c80287f783b8ac0d3835e.tar.gz mltk-cb75259e3325281d289c80287f783b8ac0d3835e.tar.xz mltk-cb75259e3325281d289c80287f783b8ac0d3835e.zip |
[qemu] Create missing ACPI OpRegion for GVT-g instance on UEFI machines
Diffstat (limited to 'core/modules/qemu')
2 files changed, 11 insertions, 0 deletions
diff --git a/core/modules/qemu/data/usr/share/qemu/vbios_gvt_uefi.rom b/core/modules/qemu/data/usr/share/qemu/vbios_gvt_uefi.rom Binary files differnew file mode 100644 index 00000000..040e3429 --- /dev/null +++ b/core/modules/qemu/data/usr/share/qemu/vbios_gvt_uefi.rom 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 88a7a7bf..89266b97 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 @@ -30,6 +30,11 @@ public class TransformationSpecificQemuMdevPassthroughIntel private static final String NAME = "QEMU mediated device passthrough [Intel]"; /** + * Path to the UEFI rom file for Intel GVT-g instances. + */ + private static final String INTEL_GVT_G_UEFI_ROMFILE = "/usr/share/qemu/vbios_gvt_uefi.rom"; + + /** * Creates a new Intel mediated device passthrough transformation for Libvirt/QEMU virtualization * configurations. * @@ -117,6 +122,12 @@ public class TransformationSpecificQemuMdevPassthroughIntel config.addQemuCmdlnArgument( "-set" ); config.addQemuCmdlnArgument( "device.hostdev0.driver=vfio-pci-nohotplug" ); + // set Intel specific rom file for GVT-g if UEFI loader is used + if ( config.getOsLoader() != null && !config.getOsLoader().isEmpty() ) { + config.addQemuCmdlnArgument( "-set" ); + config.addQemuCmdlnArgument( "device.hostdev0.romfile=" + INTEL_GVT_G_UEFI_ROMFILE ); + } + // disable all software video devices by disable them for ( Video videoDevice : config.getVideoDevices() ) { videoDevice.disable(); |