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 patche

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 a

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

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 wrote: On 08/12/2014 08:53, Pavel Dovgalyuk wrote: >  if (!cpu_can_do

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); >

[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 --- cpus.c | 13 ++--- include/qemu/timer.h |1 + 2 files changed, 11 in