Re: [Qemu-devel] [PATCH 0/2] linux-user: Change mmap_lock to rwlock

2018-06-23 Thread Emilio G. Cota
On Sat, Jun 23, 2018 at 08:25:52 -0700, Richard Henderson wrote: > On 06/22/2018 02:12 PM, Emilio G. Cota wrote: > > I'm curious to see how much perf could be gained. It seems that the hold > > times in SVE code for readers might not be very large, which > > then wouldn't let us amortize the atomic

Re: [Qemu-devel] [PATCH 0/2] linux-user: Change mmap_lock to rwlock

2018-06-23 Thread Richard Henderson
On 06/22/2018 02:12 PM, Emilio G. Cota wrote: > I'm curious to see how much perf could be gained. It seems that the hold > times in SVE code for readers might not be very large, which > then wouldn't let us amortize the atomic inc of the read lock > (IOW, we might not see much of a difference compa

Re: [Qemu-devel] [PATCH 0/2] linux-user: Change mmap_lock to rwlock

2018-06-22 Thread Emilio G. Cota
On Thu, Jun 21, 2018 at 07:36:33 -1000, Richard Henderson wrote: > The objective here is to avoid serializing the first-fault > and no-fault aarch64 sve loads. > > When I first thought of this, we still had tb_lock protecting > code generation and merely needed mmap_lock to prevent mapping > chang

[Qemu-devel] [PATCH 0/2] linux-user: Change mmap_lock to rwlock

2018-06-21 Thread Richard Henderson
The objective here is to avoid serializing the first-fault and no-fault aarch64 sve loads. When I first thought of this, we still had tb_lock protecting code generation and merely needed mmap_lock to prevent mapping changes while doing so. Now (or very soon), tb_lock is gone and user-only code ge