Re: [Qemu-devel] [RFC] translate-all: protect code_gen_buffer with RCU

2016-04-25 Thread Alex Bennée
Emilio G. Cota writes: > On Fri, Apr 22, 2016 at 15:41:13 +0100, Alex Bennée wrote: >> Emilio G. Cota writes: > (snip) >> > Known issues: >> > - Basically compile-tested only, since I've only run this with >> > single-threaded TCG; I also tried running it with linux-user, >> > but in order

Re: [Qemu-devel] [RFC] translate-all: protect code_gen_buffer with RCU

2016-04-23 Thread Emilio G. Cota
On Fri, Apr 22, 2016 at 15:41:13 +0100, Alex Bennée wrote: > Emilio G. Cota writes: (snip) > > Known issues: > > - Basically compile-tested only, since I've only run this with > > single-threaded TCG; I also tried running it with linux-user, > > but in order to trigger tb_flush I had to make c

Re: [Qemu-devel] [RFC] translate-all: protect code_gen_buffer with RCU

2016-04-22 Thread Richard Henderson
On 04/21/2016 05:06 PM, Emilio G. Cota wrote: > #ifdef USE_STATIC_CODE_GEN_BUFFER > -static uint8_t static_code_gen_buffer[DEFAULT_CODE_GEN_BUFFER_SIZE] > +static uint8_t static_code_gen_buffer1[DEFAULT_CODE_GEN_BUFFER_SIZE] > __attribute__((aligned(CODE_GEN_ALIGN))); > +static uint8_t static

Re: [Qemu-devel] [RFC] translate-all: protect code_gen_buffer with RCU

2016-04-22 Thread Alex Bennée
Alex Bennée writes: > Emilio G. Cota writes: > >> This is a first attempt at making tb_flush not have to stop all CPUs. >> There are issues as pointed out below, but this could be a good start. >> >> Context: >> https://lists.gnu.org/archive/html/qemu-devel/2016-03/msg04658.html >> https://

Re: [Qemu-devel] [RFC] translate-all: protect code_gen_buffer with RCU

2016-04-22 Thread Alex Bennée
Emilio G. Cota writes: > This is a first attempt at making tb_flush not have to stop all CPUs. > There are issues as pointed out below, but this could be a good start. > > Context: > https://lists.gnu.org/archive/html/qemu-devel/2016-03/msg04658.html > https://lists.gnu.org/archive/html/qemu

[Qemu-devel] [RFC] translate-all: protect code_gen_buffer with RCU

2016-04-21 Thread Emilio G. Cota
This is a first attempt at making tb_flush not have to stop all CPUs. There are issues as pointed out below, but this could be a good start. Context: https://lists.gnu.org/archive/html/qemu-devel/2016-03/msg04658.html https://lists.gnu.org/archive/html/qemu-devel/2016-03/msg06942.html Known i