Re: [Qemu-devel] CPU TLB flush with multithread TCG.

2015-02-11 Thread Frederic Konrad
On 11/02/2015 09:42, Frederic Konrad wrote: On 11/02/2015 04:33, Alex Bennée wrote: Frederic Konrad writes: Hi everybody, In multithread tlb_flush is broken as CPUA can flush an other CPUB and CPUB can be executing code, and fixing this can be quite hard: * We need to exit the CPU which

Re: [Qemu-devel] CPU TLB flush with multithread TCG.

2015-02-11 Thread Frederic Konrad
On 11/02/2015 04:33, Alex Bennée wrote: Frederic Konrad writes: Hi everybody, In multithread tlb_flush is broken as CPUA can flush an other CPUB and CPUB can be executing code, and fixing this can be quite hard: * We need to exit the CPU which is flushed. * Makes sure the CPU is stopp

Re: [Qemu-devel] CPU TLB flush with multithread TCG.

2015-02-11 Thread Mark Burton
> On 11 Feb 2015, at 04:33, Alex Bennée wrote: > > > Frederic Konrad writes: > >> Hi everybody, >> >> In multithread tlb_flush is broken as CPUA can flush an other CPUB and >> CPUB can be >> executing code, and fixing this can be quite hard: >> * We need to exit the CPU which is flushed.

Re: [Qemu-devel] CPU TLB flush with multithread TCG.

2015-02-10 Thread Alex Bennée
Frederic Konrad writes: > Hi everybody, > > In multithread tlb_flush is broken as CPUA can flush an other CPUB and > CPUB can be > executing code, and fixing this can be quite hard: >* We need to exit the CPU which is flushed. >* Makes sure the CPU is stopped. >* Then we can flush t

[Qemu-devel] CPU TLB flush with multithread TCG.

2015-02-09 Thread Frederic Konrad
Hi everybody, In multithread tlb_flush is broken as CPUA can flush an other CPUB and CPUB can be executing code, and fixing this can be quite hard: * We need to exit the CPU which is flushed. * Makes sure the CPU is stopped. * Then we can flush tlb. The big issues are: * Two threads can