Re: [Qemu-devel] [PATCH 5/6] memory_ldst: Add atomic ops for PTE updates

2019-04-15 Thread Cédric Le Goater
On 4/15/19 5:38 AM, David Gibson wrote: > On Thu, Apr 11, 2019 at 10:00:03AM +0200, Cédric Le Goater wrote: >> From: Benjamin Herrenschmidt >> >> On some architectures, PTE updates for dirty and changed bits need >> to be performed atomically. This adds a couple of address_space_cmpxchg* >>

Re: [Qemu-devel] [PATCH 5/6] memory_ldst: Add atomic ops for PTE updates

2019-04-14 Thread Benjamin Herrenschmidt
On Mon, 2019-04-15 at 13:38 +1000, David Gibson wrote: > On Thu, Apr 11, 2019 at 10:00:03AM +0200, Cédric Le Goater wrote: > > From: Benjamin Herrenschmidt > > > > On some architectures, PTE updates for dirty and changed bits need > > to be performed atomically. This adds a couple of > >

Re: [Qemu-devel] [PATCH 5/6] memory_ldst: Add atomic ops for PTE updates

2019-04-14 Thread David Gibson
On Thu, Apr 11, 2019 at 10:00:03AM +0200, Cédric Le Goater wrote: > From: Benjamin Herrenschmidt > > On some architectures, PTE updates for dirty and changed bits need > to be performed atomically. This adds a couple of address_space_cmpxchg* > helpers for that purpose. > > Signed-off-by:

[Qemu-devel] [PATCH 5/6] memory_ldst: Add atomic ops for PTE updates

2019-04-11 Thread Cédric Le Goater
From: Benjamin Herrenschmidt On some architectures, PTE updates for dirty and changed bits need to be performed atomically. This adds a couple of address_space_cmpxchg* helpers for that purpose. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Cédric Le Goater ---