diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-07-14 23:34:18 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-08-21 00:51:06 -0400 |
commit | 799e0edc196c4273b728b9f832d90dc79bbf8bbe (patch) | |
tree | 7911ac148020d9ea58c89fa7a0dcde8b5e4adb8e /systemd | |
parent | 386c4d38702b2643c09d8db7d7851a39f8798406 (diff) |
Fix vCPU pinning, fix NUMA example
Diffstat (limited to 'systemd')
-rwxr-xr-x | systemd/system/qemu | 2 |
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 |