summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Bentele2021-08-31 11:16:11 +0200
committerManuel Bentele2021-08-31 11:16:11 +0200
commit27475b9cadf156cba5249a4d6a0ce2b52cf7a7b9 (patch)
treeefef465aab7fc04b44ed529c7725f388428c7ce7
parent[qemu] Fix issue with possible empty comparison in passthrough setup (diff)
downloadmltk-27475b9cadf156cba5249a4d6a0ce2b52cf7a7b9.tar.gz
mltk-27475b9cadf156cba5249a4d6a0ce2b52cf7a7b9.tar.xz
mltk-27475b9cadf156cba5249a4d6a0ce2b52cf7a7b9.zip
[qemu] Fix comments in systemd passthrough setup script
-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