x86/KVM/VMX: Introduce and use try_cmpxchg64()
Status from this message: Queued, thanks.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | asm-generic/atomic: Add try_cmpxchg64() instrumentationinclude/ scripts/ | +46 | 0 replies | |
| 2/3 | locking/atomic/x86: Introduce arch_try_cmpxchg64()arch/ arch/ | +59 | 1 reply | |
| 3/3 | KVM/VMX: Use try_cmpxchg64() in posted_intr.carch/ | +3 | 1 reply |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Sean Christopherson |
|---|---|
| 1/3 | |
| 2/3 | |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] x86/KVM/VMX: Introduce and use try_cmpxchg64()
This patch series introduces try_cmpxchg64() atomic locking function.
try_cmpxchg64() provides the same interface for 64 bit and 32 bit targets, emits CMPXCHGQ for 64 bit targets and CMPXCHG8B for 32 bit targets, and provides appropriate fallbacks when CMPXCHG8B is unavailable.
try_cmpxchg64() reuses flags from CMPXCHGQ/CMPXCHG8B instructions and avoids unneeded CMP for 64 bit targets or XOR/XOR/OR sequence for 32 bit targets.
Uros Bizjak (3):
asm-generic/atomic: Add try_cmpxchg64() instrumentation locking/atomic/x86: Introduce arch_try_cmpxchg64() KVM/VMX: Use try_cmpxchg64() in posted_intr.c
arch/x86/include/asm/cmpxchg_32.h | 62 +++++++++++++++++++---- arch/x86/include/asm/cmpxchg_64.h | 6 +++ arch/x86/kvm/vmx/posted_intr.c | 9 ++-- include/asm-generic/atomic-instrumented.h | 46 ++++++++++++++++- scripts/atomic/gen-atomic-instrumented.sh | 2 +- 5 files changed, 108 insertions(+), 17 deletions(-)
Signature · 1 line
2.26.2