diff options
author | Oliver Upton <[email protected]> | 2023-06-22 16:09:22 +0000 |
---|---|---|
committer | Oliver Upton <[email protected]> | 2023-06-22 17:17:14 +0000 |
commit | 192df2aa0113ddddee2a93e453ff46610807b425 (patch) | |
tree | 31fba9a3378b132bbb5ba28908e933fc8ffd85e1 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 92d05e2492f1400029e84b5a72e15811ef787ee9 (diff) |
KVM: arm64: Fix misuse of KVM_ARM_VCPU_POWER_OFF bit index
KVM_ARM_VCPU_POWER_OFF is as bit index, _not_ a literal bitmask.
Nonetheless, commit e3c1c0cae31e ("KVM: arm64: Relax invariance
of KVM_ARM_VCPU_POWER_OFF") started using it that way, meaning that
powering off a vCPU with the KVM_ARM_VCPU_INIT ioctl is completely
broken.
Fix it by using a shifted bit for the bitwise operations instead.
Reported-by: Dan Carpenter <[email protected]>
Fixes: e3c1c0cae31e ("KVM: arm64: Relax invariance of KVM_ARM_VCPU_POWER_OFF")
Acked-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions