diff options
| author | 2022-01-19 23:07:24 +0000 | |
|---|---|---|
| committer | 2022-02-10 13:50:37 -0500 | |
| commit | 3255530ab191cf75caa2cfc52fe984f5c4c44c74 (patch) | |
| tree | 6a70a594c8e26961c8e0aea0bc701b3f0aa3f145 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | KVM: x86/mmu: Rename __rmap_write_protect() to rmap_write_protect() (diff) | |
KVM: x86/mmu: Automatically update iter->old_spte if cmpxchg fails
Consolidate a bunch of code that was manually re-reading the spte if the
cmpxchg failed. There is no extra cost of doing this because we already
have the spte value as a result of the cmpxchg (and in fact this
eliminates re-reading the spte), and none of the call sites depend on
iter->old_spte retaining the stale spte value.
Reviewed-by: Ben Gardon <bgardon@google.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20220119230739.2234394-4-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
