diff options
| author | Paolo Bonzini <[email protected]> | 2020-03-14 12:29:23 +0100 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2020-03-16 17:58:59 +0100 |
| commit | 8e205a6b2a06764a4c2bfc9e1a6a8a8e7920faf8 (patch) | |
| tree | f28323015730289c4f9d57a023bd404ab016cf30 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 212617dbb6bac2a21dec6ef7d6012d96bb6dbb5d (diff) | |
KVM: X86: correct meaningless kvm_apicv_activated() check
After test_and_set_bit() for kvm->arch.apicv_inhibit_reasons, we will
always get false when calling kvm_apicv_activated() because it's sure
apicv_inhibit_reasons do not equal to 0.
What the code wants to do, is check whether APICv was *already* active
and if so skip the costly request; we can do this using cmpxchg.
Reported-by: Miaohe Lin <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions