Re: [Qemu-devel] [PATCH v2 11/17] translate-all: add page_locked assertions

2018-05-10 Thread Emilio G. Cota
On Mon, Apr 23, 2018 at 20:27:36 -0400, Emilio G. Cota wrote: > On Fri, Apr 13, 2018 at 17:31:20 -1000, Richard Henderson wrote: > > On 04/05/2018 04:13 PM, Emilio G. Cota wrote: > > > +#ifdef CONFIG_DEBUG_TCG > > > + > > > +struct page_lock_debug { > > > +const PageDesc *pd; > > > +QLIST_E

Re: [Qemu-devel] [PATCH v2 11/17] translate-all: add page_locked assertions

2018-04-23 Thread Emilio G. Cota
On Fri, Apr 13, 2018 at 17:31:20 -1000, Richard Henderson wrote: > On 04/05/2018 04:13 PM, Emilio G. Cota wrote: > > +#ifdef CONFIG_DEBUG_TCG > > + > > +struct page_lock_debug { > > +const PageDesc *pd; > > +QLIST_ENTRY(page_lock_debug) entry; > > +}; > > + > > +static __thread QLIST_HEAD(,

Re: [Qemu-devel] [PATCH v2 11/17] translate-all: add page_locked assertions

2018-04-13 Thread Richard Henderson
On 04/05/2018 04:13 PM, Emilio G. Cota wrote: > +#ifdef CONFIG_DEBUG_TCG > + > +struct page_lock_debug { > +const PageDesc *pd; > +QLIST_ENTRY(page_lock_debug) entry; > +}; > + > +static __thread QLIST_HEAD(, page_lock_debug) page_lock_debug_head; > + > +static struct page_lock_debug *get_p

[Qemu-devel] [PATCH v2 11/17] translate-all: add page_locked assertions

2018-04-05 Thread Emilio G. Cota
This is only compiled under CONFIG_DEBUG_TCG to avoid bloating the binary. In user-mode, assert_page_locked is equivalent to assert_mmap_lock. Note: There are some tb_lock assertions left that will be removed by later patches. Suggested-by: Alex Bennée Signed-off-by: Emilio G. Cota --- accel/