summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcore/modules/qemu/data/opt/openslx/scripts/systemd-qemu_env9
1 files changed, 6 insertions, 3 deletions
diff --git a/core/modules/qemu/data/opt/openslx/scripts/systemd-qemu_env b/core/modules/qemu/data/opt/openslx/scripts/systemd-qemu_env
index 144a0faf..85182d47 100755
--- a/core/modules/qemu/data/opt/openslx/scripts/systemd-qemu_env
+++ b/core/modules/qemu/data/opt/openslx/scripts/systemd-qemu_env
@@ -16,14 +16,14 @@
# - This is the preparation script for the configuration of QEMU on Linux.
################################################################################
-#
-# create and setup Intel GVT-g mediated device instance for passthrough if Intel GVT-g is enabled
-#
source /opt/openslx/vmchooser/run-virt-includes/vmchooser_runvirt_functions.inc
source /opt/openslx/vmchooser/plugins/qemukvm/includes/kernel-cmdln.inc
source /opt/openslx/vmchooser/plugins/qemukvm/includes/passthrough-pci.inc
source /opt/openslx/vmchooser/plugins/qemukvm/includes/passthrough-mdev.inc
+#
+# setup PCI devices for passthrough if Intel PCI passthrough is enabled
+#
if passthrough_pci_enabled; then
# check if passthrough is configured properly
if ! passthrough_pci_check; then
@@ -36,6 +36,9 @@ if passthrough_pci_enabled; then
chmod -R 660 /dev/vfio/* || slxlog --echo "qemu" "Could not change access mode for 'vfio' IOMMU devices!"
fi
+#
+# create and setup Intel GVT-g mediated device instance for passthrough if Intel GVT-g is enabled
+#
if passthrough_mdev_enabled; then
# check if passthrough is configured properly
if ! passthrough_mdev_check; then