summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Bentele2021-08-31 11:13:32 +0200
committerManuel Bentele2021-08-31 11:13:32 +0200
commit119be89d500ccc1a1063f53a7adfa56e156e4593 (patch)
tree5f3e1764be5c21081cf5f86c259cf85122d7ca73
parent[slxlog] Do not print any commands if echo command is submitted (diff)
downloadmltk-119be89d500ccc1a1063f53a7adfa56e156e4593.tar.gz
mltk-119be89d500ccc1a1063f53a7adfa56e156e4593.tar.xz
mltk-119be89d500ccc1a1063f53a7adfa56e156e4593.zip
[qemu] Fix issue with possible empty comparison in passthrough setup
-rw-r--r--core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/includes/passthrough-mdev.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/includes/passthrough-mdev.inc b/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/includes/passthrough-mdev.inc
index f2e2942b..0240e0f1 100644
--- a/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/includes/passthrough-mdev.inc
+++ b/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/includes/passthrough-mdev.inc
@@ -19,7 +19,7 @@
function passthrough_mdev_enabled() {
local passthrough_iommu="$(kernel_cmdln_parse_option "iommu")"
local intel_gvt="$(kernel_cmdln_parse_option "i915.enable_gvt")"
- if [ "${passthrough_iommu}" == "pt" ] && [ "${intel_gvt}" -eq 1 ]; then
+ if [ "${passthrough_iommu}" == "pt" ] && [ "${intel_gvt}" == "1" ]; then
return 0
else
return 1