Re: [Qemu-devel] [PATCH 10/16] translate-all: use per-page locking in !user-mode

2018-04-05 Thread Emilio G. Cota
On Thu, Mar 29, 2018 at 15:55:13 +0100, Alex Bennée wrote: > > Emilio G. Cota writes: (snip) > > +/* lock the page(s) of a TB in the correct acquisition order */ > > +static inline void page_lock_tb(const TranslationBlock *tb) > > +{ > > +if (likely(tb->page_addr[1] == -1)) {

Re: [Qemu-devel] [PATCH 10/16] translate-all: use per-page locking in !user-mode

2018-03-29 Thread Alex Bennée
Emilio G. Cota writes: > Groundwork for supporting parallel TCG generation. > > Instead of using a global lock (tb_lock) to protect changes > to pages, use fine-grained, per-page locks in !user-mode. > User-mode stays with mmap_lock. > > Sometimes changes need to happen

[Qemu-devel] [PATCH 10/16] translate-all: use per-page locking in !user-mode

2018-02-26 Thread Emilio G. Cota
Groundwork for supporting parallel TCG generation. Instead of using a global lock (tb_lock) to protect changes to pages, use fine-grained, per-page locks in !user-mode. User-mode stays with mmap_lock. Sometimes changes need to happen atomically on more than one page (e.g. when a TB that spans