Re: [PATCH] replay: implement fair mutex

2020-05-18 Thread Pavel Dovgalyuk
On 18.05.2020 19:07, Alex Bennée wrote: Pavel Dovgalyuk writes: In record/replay icount mode main loop thread and vCPU thread do not perform simultaneously. They take replay mutex to synchronize the actions. Sometimes vCPU thread waits for locking the mutex for very long time, because main l

Re: [PATCH] replay: implement fair mutex

2020-05-18 Thread Alex Bennée
Pavel Dovgalyuk writes: > In record/replay icount mode main loop thread and vCPU thread > do not perform simultaneously. They take replay mutex to synchronize > the actions. Sometimes vCPU thread waits for locking the mutex for > very long time, because main loop releases the mutex and takes it

[PATCH] replay: implement fair mutex

2020-04-30 Thread Pavel Dovgalyuk
In record/replay icount mode main loop thread and vCPU thread do not perform simultaneously. They take replay mutex to synchronize the actions. Sometimes vCPU thread waits for locking the mutex for very long time, because main loop releases the mutex and takes it back again. Standard qemu mutex do

Re: [PATCH] replay: implement fair mutex

2020-04-30 Thread Paolo Bonzini
On 30/04/20 11:13, Pavel Dovgalyuk wrote: > In record/replay icount mode main loop thread and vCPU thread > do not perform simultaneously. They take replay mutex to synchronize > the actions. Sometimes vCPU thread waits for locking the mutex for > very long time, because main loop releases the mute

[PATCH] replay: implement fair mutex

2020-04-30 Thread Pavel Dovgalyuk
In record/replay icount mode main loop thread and vCPU thread do not perform simultaneously. They take replay mutex to synchronize the actions. Sometimes vCPU thread waits for locking the mutex for very long time, because main loop releases the mutex and takes it back again. Standard qemu mutex do