diff options
| author | Uros Bizjak <[email protected]> | 2022-05-20 16:46:35 +0200 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2022-06-15 08:12:17 -0400 |
| commit | 2db2f46fdfc25691f3e90224e78bc5b2fc23dcd7 (patch) | |
| tree | 1940c829fbe942726c44d801206b3ed482cf70b1 /tools/perf/scripts/python | |
| parent | 0ac304de73b37b66793d6cc1ad3a03886aa79791 (diff) | |
KVM: x86/mmu: Use try_cmpxchg64 in fast_pf_fix_direct_spte
Use try_cmpxchg64 instead of cmpxchg64 (*ptr, old, new) != old in
fast_pf_fix_direct_spte. cmpxchg returns success in ZF flag, so this
change saves a compare after cmpxchg (and related move instruction
in front of cmpxchg).
Signed-off-by: Uros Bizjak <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: Sean Christopherson <[email protected]>
Cc: Vitaly Kuznetsov <[email protected]>
Cc: Wanpeng Li <[email protected]>
Cc: Jim Mattson <[email protected]>
Cc: Joerg Roedel <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions