Re: [PATCH v2 0/3] KVM: s390: Couple of small cmpxchg() optimizations

From: Janosch Frank
Date: Tue Nov 26 2024 - 07:27:04 EST


On 11/26/24 11:25 AM, Heiko Carstens wrote:
v2:
- Replace broken WRITE_ONCE(..., 9) with intended WRITE_ONCE(..., 0).

v1:
Use try_cmpxchg() instead of cmpxchg() so compilers with flag output
operand support (gcc 14 and newer) can generate slightly better code.

Also get rid of two cmpxchg() usages on one/two byte memory areas
which generates inefficient code.

bloat-o-meter statistics of the kvm module:


Looks good to me, Ack to the series.