From 799e0edc196c4273b728b9f832d90dc79bbf8bbe Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 14 Jul 2018 23:34:18 -0400 Subject: Fix vCPU pinning, fix NUMA example --- systemd/system/qemu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'systemd/system/qemu') diff --git a/systemd/system/qemu b/systemd/system/qemu index 324154b..ad58ae3 100755 --- a/systemd/system/qemu +++ b/systemd/system/qemu @@ -17,7 +17,7 @@ args+=( { numactl "${numactl[@]}" -- qemu-system-"${system}" "${args[@]}" - if [[ ${#vcpu2cpulist[@]} -gt 0 ]]; then + if [[ ${vcpu2cpulist+${#vcpu2cpulist[@]}} -gt 0 ]]; then declare -A vcpu2tid while read -r line; do if [[ $line != ?' CPU #'*:*thread_id=* ]]; then -- cgit v1.2.3-2-g168b