Re: [Qemu-devel] [RFC v3 12/19] tcg: add kick timer for single-threaded vCPU emulation

2016-07-02 Thread Sergey Fedorov
On 02/07/16 03:17, Richard Henderson wrote: > On 06/27/2016 02:20 PM, Sergey Fedorov wrote: >> On 03/06/16 23:40, Alex Bennée wrote: >>> diff --git a/cpus.c b/cpus.c >>> index 1694ce9..12e04c9 100644 >>> --- a/cpus.c >>> +++ b/cpus.c >>> @@ -1208,9 +1208,29 @@ static int tcg_cpu_exec(CPUState *cpu)

Re: [Qemu-devel] [RFC v3 12/19] tcg: add kick timer for single-threaded vCPU emulation

2016-07-01 Thread Richard Henderson
On 06/27/2016 02:20 PM, Sergey Fedorov wrote: On 03/06/16 23:40, Alex Bennée wrote: diff --git a/cpus.c b/cpus.c index 1694ce9..12e04c9 100644 --- a/cpus.c +++ b/cpus.c @@ -1208,9 +1208,29 @@ static int tcg_cpu_exec(CPUState *cpu) return ret; } +/* Single-threaded TCG + * + * In the singl

Re: [Qemu-devel] [RFC v3 12/19] tcg: add kick timer for single-threaded vCPU emulation

2016-06-27 Thread Sergey Fedorov
On 03/06/16 23:40, Alex Bennée wrote: > diff --git a/cpus.c b/cpus.c > index 1694ce9..12e04c9 100644 > --- a/cpus.c > +++ b/cpus.c > @@ -1208,9 +1208,29 @@ static int tcg_cpu_exec(CPUState *cpu) > return ret; > } > > +/* Single-threaded TCG > + * > + * In the single-threaded case each vCPU

[Qemu-devel] [RFC v3 12/19] tcg: add kick timer for single-threaded vCPU emulation

2016-06-03 Thread Alex Bennée
Currently we rely on the side effect of the main loop grabbing the iothread_mutex to give any long running basic block chains a kick to ensure the next vCPU is scheduled. As this code is being re-factored and rationalised we now do it explicitly here. Signed-off-by: Alex Bennée --- v2 - re-bas