diff options
author | Lai Jiangshan <[email protected]> | 2021-06-01 01:46:28 +0800 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2021-06-08 13:15:20 -0400 |
commit | af3511ff7fa2107d6410831f3d71030f5e8d2b25 (patch) | |
tree | 2f97e39acd2001b3c473b61754b52cf8af63d553 /drivers/fpga/fpga-bridge.c | |
parent | b1bd5cba3306691c771d558e94baa73e8b0b96b7 (diff) |
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 <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions