Re: [Qemu-devel] [PATCH 16/16] tcg: remove tb_lock

2018-03-29 Thread Alex Bennée
Emilio G. Cota writes: > Use mmap_lock in user-mode to protect TCG state and the page > descriptors. > In !user-mode, each vCPU has its own TCG state, so no locks > needed. Per-page locks are used to protect the page descriptors. > > Per-TB locks are used in both modes to protect TB jumps. > > S

[Qemu-devel] [PATCH 16/16] tcg: remove tb_lock

2018-02-26 Thread Emilio G. Cota
Use mmap_lock in user-mode to protect TCG state and the page descriptors. In !user-mode, each vCPU has its own TCG state, so no locks needed. Per-page locks are used to protect the page descriptors. Per-TB locks are used in both modes to protect TB jumps. Some notes: - tb_lock is removed from no