Re: [PATCH 4/5] rust: percpu: Add pin-hole optimizations for numerics

From: Mitchell Levy
Date: Thu Jun 26 2025 - 14:56:10 EST


On Wed, Jun 25, 2025 at 10:23:42AM -0700, Christoph Lameter (Ampere) wrote:
> On Tue, 24 Jun 2025, Mitchell Levy wrote:
>
> > + concat!("add gs:[{off}], {val:", $reg, "}"),
>
> > + concat!("sub gs:[{off}], {val:", $reg, "}"),
>
> > + concat!("sub gs:[{off}], {val}"),
>
> Where are the other RMV instructions like this_cpu_xchg and
> this_cpu_cmpxchg, this_cpu_cmpxchg_double etc?

I wanted to stick with (what I saw as) the most basic operations for the
first submission. That said, I tried to design things such that adding
more operations should be straightforward. Happy to build on this
further for a v2 if folks are interested in that.