Re: [Qemu-devel] [PATCH] main-loop: drop spin_counter

2018-05-31 Thread Stefan Hajnoczi
On Wed, May 30, 2018 at 08:42:38PM +0100, Stefan Hajnoczi wrote: > Commit d759c951f3287fad04210a52f2dc93f94cf58c7f ("replay: push > replay_mutex_lock up the call tree") removed the !timeout lock > optimization in the main loop. > > The idea of the optimization was to avoid ping-pongs between threa

Re: [Qemu-devel] [PATCH] main-loop: drop spin_counter

2018-05-31 Thread Paolo Bonzini
On 30/05/2018 21:42, Stefan Hajnoczi wrote: > Commit d759c951f3287fad04210a52f2dc93f94cf58c7f ("replay: push > replay_mutex_lock up the call tree") removed the !timeout lock > optimization in the main loop. > > The idea of the optimization was to avoid ping-pongs between threads by > keeping the B

Re: [Qemu-devel] [PATCH] main-loop: drop spin_counter

2018-05-30 Thread Jeff Cody
On Wed, May 30, 2018 at 08:42:38PM +0100, Stefan Hajnoczi wrote: > Commit d759c951f3287fad04210a52f2dc93f94cf58c7f ("replay: push > replay_mutex_lock up the call tree") removed the !timeout lock > optimization in the main loop. > > The idea of the optimization was to avoid ping-pongs between threa

[Qemu-devel] [PATCH] main-loop: drop spin_counter

2018-05-30 Thread Stefan Hajnoczi
Commit d759c951f3287fad04210a52f2dc93f94cf58c7f ("replay: push replay_mutex_lock up the call tree") removed the !timeout lock optimization in the main loop. The idea of the optimization was to avoid ping-pongs between threads by keeping the Big QEMU Lock held across non-blocking (!timeout) main lo