From 7c4eeacca5a9e5573e514550eab7e39c6f10a510 Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Thu, 19 Aug 2021 13:35:05 +0200 Subject: [qemu] Replace spaces with tabs in PCI passthrough include --- .../plugins/qemukvm/includes/passthrough-pci.inc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/includes/passthrough-pci.inc b/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/includes/passthrough-pci.inc index a111d749..c0ab8cbb 100644 --- a/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/includes/passthrough-pci.inc +++ b/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/includes/passthrough-pci.inc @@ -18,7 +18,7 @@ # Return : 0 (true) if passthrough is enabled, otherwise 1 (false) function passthrough_pci_enabled() { local passthrough_iommu="$(kernel_cmdln_parse_option "iommu")" - local passthrough_pci_ids=($(kernel_cmdln_parse_pci_ids)) + local passthrough_pci_ids=($(kernel_cmdln_parse_pci_ids)) if [ "${passthrough_iommu}" == "pt" ] && ["${#passthrough_pci_ids[@]}" -gt 0 ]; then return 0 else @@ -56,14 +56,14 @@ function passthrough_pci_lookup_address() { # Return : PCI-IDs and addresses of the specified passthrough PCI devices as tuples of form # ":,::." function passthrough_pci_setup() { - # check if passthrough is enabled - if passthrough_enabled; then + # check if passthrough is enabled + if passthrough_pci_enabled; then # check if passthrough is configured properly - if ! passthrough_check; then + if ! passthrough_pci_check; then return 1; fi - writelog "Passthrough of PCI devices is enabled successfully" + writelog "Passthrough of PCI devices is enabled successfully" # parse PCI-IDs from the kernel command line local passthrough_pci_ids=($(kernel_cmdln_parse_pci_ids)) @@ -80,8 +80,8 @@ function passthrough_pci_setup() { fi done - echo "${pt_gpu_pci_ids[@]}" - fi + echo "${pt_gpu_pci_ids[@]}" + fi - return 0; + return 0; } -- cgit v1.2.3-55-g7522