[PATCH v10 13/33] KVM: arm64: Make __vcpu_rmw_sys_reg() atomic

Colton Lewis coltonlewis at google.com
Thu Dec 3 10:57:26 PST 2026


Oliver Upton <oupton at kernel.org> writes:

> Urgh, my strong preference is that we avoid upgrading all RMW patterns
> to atomics. I'm guessing you only need this for the overflow flags?
>
> If that's the case then we should just special-case the handling of the
> overflow flags, stuffing them in an atomic that can be drained from the
> vCPU outside of an IRQ.
>
> You'd need to make sure those flags are architectural before re-entering
> the guest or vcpu_put().

Yes I only need it for the overflow flags. I'll handle it with a
special-case atomic.



More information about the linux-arm-kernel mailing list