summaryrefslogtreecommitdiff
path: root/systemd/system/qemu
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-07-14 23:34:18 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-08-21 00:51:06 -0400
commit799e0edc196c4273b728b9f832d90dc79bbf8bbe (patch)
tree7911ac148020d9ea58c89fa7a0dcde8b5e4adb8e /systemd/system/qemu
parent386c4d38702b2643c09d8db7d7851a39f8798406 (diff)
Fix vCPU pinning, fix NUMA example
Diffstat (limited to 'systemd/system/qemu')
-rwxr-xr-xsystemd/system/qemu2
1 files changed, 1 insertions, 1 deletions
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