Re: [Qemu-devel] [RFC PATCH v6 08/32] icount: implement icount requesting

2014-12-11 Thread Pavel Dovgaluk
From: Paolo Bonzini [mailto:paolo.bonz...@gmail.com] On Behalf Of Paolo Bonzini On 10/12/2014 07:35, Pavel Dovgalyuk wrote: No, it worked well and I deleted _nocache version of that function. But I still need _raw one to get the instructions counter. Oh, great. This patch can also go

Re: [Qemu-devel] [RFC PATCH v6 08/32] icount: implement icount requesting

2014-12-11 Thread Paolo Bonzini
On 11/12/2014 09:16, Pavel Dovgaluk wrote: No, it worked well and I deleted _nocache version of that function. But I still need _raw one to get the instructions counter. Oh, great. This patch can also go in early. What's the next? Will you upstream some of the patches to simplify

Re: [Qemu-devel] [RFC PATCH v6 08/32] icount: implement icount requesting

2014-12-09 Thread Paolo Bonzini
On 08/12/2014 08:53, Pavel Dovgalyuk wrote: if (!cpu_can_do_io(cpu)) { -fprintf(stderr, Bad clock read\n); +fprintf(stderr, Bad icount read\n); +exit(1); } icount -= (cpu-icount_decr.u16.low + cpu-icount_extra); } +

Re: [Qemu-devel] [RFC PATCH v6 08/32] icount: implement icount requesting

2014-12-09 Thread Pavel Dovgalyuk
No, it worked well and I deleted _nocache version of that function. But I still need _raw one to get the instructions counter. Sent using CloudMagic On вт, Дек 09, 2014 at 8:39 PM, Paolo Bonzini pbonz...@redhat.com wrote: On 08/12/2014 08:53, Pavel Dovgalyuk wrote: if (!cpu_can_do_io(cpu)) {

Re: [Qemu-devel] [RFC PATCH v6 08/32] icount: implement icount requesting

2014-12-09 Thread Paolo Bonzini
On 10/12/2014 07:35, Pavel Dovgalyuk wrote: No, it worked well and I deleted _nocache version of that function. But I still need _raw one to get the instructions counter. Oh, great. This patch can also go in early. Paolo

[Qemu-devel] [RFC PATCH v6 08/32] icount: implement icount requesting

2014-12-07 Thread Pavel Dovgalyuk
Replay uses number of executed instructions to determine corrent events injection moments. This patch introduces new function for querying the instructions counter. Signed-off-by: Pavel Dovgalyuk pavel.dovga...@ispras.ru --- cpus.c | 13 ++--- include/qemu/timer.h |1