Re: [Qemu-devel] [RFC v2 03/11] docs: new design document multi-thread-tcg.txt (DRAFTING)

2016-05-25 Thread Sergey Fedorov
On 25/05/16 21:03, Paolo Bonzini wrote: >> The page table seems to be protected by 'mmap_lock' in user mode >> emulation but by 'tb_lock' in system mode emulation. It may turn to be >> possible to read it safely even with no lock held. > Yes, it is possible to at least follow the radix tree safely

Re: [Qemu-devel] [RFC v2 03/11] docs: new design document multi-thread-tcg.txt (DRAFTING)

2016-05-25 Thread Paolo Bonzini
> The page table seems to be protected by 'mmap_lock' in user mode > emulation but by 'tb_lock' in system mode emulation. It may turn to be > possible to read it safely even with no lock held. Yes, it is possible to at least follow the radix tree safely with no lock held. The fields in the

Re: [Qemu-devel] [RFC v2 03/11] docs: new design document multi-thread-tcg.txt (DRAFTING)

2016-05-25 Thread Alex Bennée
Sergey Fedorov writes: > On 11/04/16 23:00, Sergey Fedorov wrote: >> On 05/04/16 18:32, Alex Bennée wrote: >> >> (snip) >>> + >>> +Memory maps and TLBs >>> + >>> + >>> +The memory handling code is fairly critical to the speed of memory >>> +access in

Re: [Qemu-devel] [RFC v2 03/11] docs: new design document multi-thread-tcg.txt (DRAFTING)

2016-05-25 Thread Sergey Fedorov
On 11/04/16 23:00, Sergey Fedorov wrote: > On 05/04/16 18:32, Alex Bennée wrote: > > (snip) >> + >> +Memory maps and TLBs >> + >> + >> +The memory handling code is fairly critical to the speed of memory >> +access in the emulated system. >> + > It would be nice to put some

Re: [Qemu-devel] [RFC v2 03/11] docs: new design document multi-thread-tcg.txt (DRAFTING)

2016-05-06 Thread Sergey Fedorov
On 05/04/16 18:32, Alex Bennée wrote: > This is a current DRAFT of a design proposal for upgrading TCG emulation > to take advantage of modern CPUs by running a thread-per-CPU. The > document goes through the various areas of the code affected by such a > change and proposes design requirements

Re: [Qemu-devel] [RFC v2 03/11] docs: new design document multi-thread-tcg.txt (DRAFTING)

2016-04-11 Thread Sergey Fedorov
On 05/04/16 18:32, Alex Bennée wrote: (snip) > +Introduction > + > + > +This document outlines the design for multi-threaded TCG emulation. > +The original TCG implementation was single threaded and dealt with > +multiple CPUs by with simple round-robin scheduling. This simplified a >

[Qemu-devel] [RFC v2 03/11] docs: new design document multi-thread-tcg.txt (DRAFTING)

2016-04-05 Thread Alex Bennée
This is a current DRAFT of a design proposal for upgrading TCG emulation to take advantage of modern CPUs by running a thread-per-CPU. The document goes through the various areas of the code affected by such a change and proposes design requirements for each part of the solution. It has been