diff options
author | Lai Jiangshan <laijs@linux.alibaba.com> | 2021-05-31 20:46:28 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-06-08 20:15:20 +0300 |
commit | af3511ff7fa2107d6410831f3d71030f5e8d2b25 (patch) | |
tree | 2f97e39acd2001b3c473b61754b52cf8af63d553 /tools/perf/scripts/python/flamegraph.py | |
parent | b1bd5cba3306691c771d558e94baa73e8b0b96b7 (diff) | |
download | linux-af3511ff7fa2107d6410831f3d71030f5e8d2b25.tar.xz |
KVM: x86: Ensure PV TLB flush tracepoint reflects KVM behavior
In record_steal_time(), st->preempted is read twice, and
trace_kvm_pv_tlb_flush() might output result inconsistent if
kvm_vcpu_flush_tlb_guest() see a different st->preempted later.
It is a very trivial problem and hardly has actual harm and can be
avoided by reseting and reading st->preempted in atomic way via xchg().
Signed-off-by: Lai Jiangshan <laijs@linux.alibaba.com>
Message-Id: <20210531174628.10265-1-jiangshanlai@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions