Re: [Qemu-devel] [PATCH v7 04/14] icount: exit cpu loop on expire

2017-01-25 Thread Paolo Bonzini
On 25/01/2017 12:50, Pavel Dovgalyuk wrote: >>> +/* icount has expired, we need to break the execution loop. >>> + This check is needed before tb_find to make execution >>> + deterministic - tb_find may cause an exception >>> +

Re: [Qemu-devel] [PATCH v7 04/14] icount: exit cpu loop on expire

2017-01-25 Thread Pavel Dovgalyuk
> From: Paolo Bonzini [mailto:pbonz...@redhat.com] > On 24/01/2017 08:17, Pavel Dovgalyuk wrote: > > This patch adds check to break cpu loop when icount expires without > > setting the TB_EXIT_ICOUNT_EXPIRED flag. It happens when there is no > > available translated blocks and all instructions were

Re: [Qemu-devel] [PATCH v7 04/14] icount: exit cpu loop on expire

2017-01-25 Thread Paolo Bonzini
On 24/01/2017 08:17, Pavel Dovgalyuk wrote: > This patch adds check to break cpu loop when icount expires without > setting the TB_EXIT_ICOUNT_EXPIRED flag. It happens when there is no > available translated blocks and all instructions were executed. > In icount replay mode unnecessary tb_find wi

[Qemu-devel] [PATCH v7 04/14] icount: exit cpu loop on expire

2017-01-23 Thread Pavel Dovgalyuk
This patch adds check to break cpu loop when icount expires without setting the TB_EXIT_ICOUNT_EXPIRED flag. It happens when there is no available translated blocks and all instructions were executed. In icount replay mode unnecessary tb_find will be called (which may cause an exception) and execut