Re: [Qemu-devel] [RFC PATCH V4 6/6] monitor: Add drift info to 'info jit'

2014-07-22 Thread Sebastian Tanase
- Mail original - > De: "Paolo Bonzini" > À: "Sebastian Tanase" > Cc: aligu...@amazon.com, afaer...@suse.de, r...@twiddle.net, "peter maydell" > , > mich...@walle.cc, a...@alex.org.uk, stefa...@redhat.com, > lcapitul...@redhat.com, crobi...@redhat.com, > arm...@redhat.com, wenchaoq...

Re: [Qemu-devel] [RFC PATCH V4 6/6] monitor: Add drift info to 'info jit'

2014-07-22 Thread Paolo Bonzini
Il 22/07/2014 11:58, Sebastian Tanase ha scritto: > > -timers_state.cpu_clock_offset contains the offset between the real and > virtual clocks. > However, when using the value of the virtual clock > (qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)), > qemu_icount_bias already includes this offset because,

Re: [Qemu-devel] [RFC PATCH V4 6/6] monitor: Add drift info to 'info jit'

2014-07-22 Thread Sebastian Tanase
- Mail original - > De: "Paolo Bonzini" > À: "Sebastian Tanase" , qemu-devel@nongnu.org > Cc: aligu...@amazon.com, afaer...@suse.de, r...@twiddle.net, "peter maydell" > , > mich...@walle.cc, a...@alex.org.uk, stefa...@redhat.com, > lcapitul...@redhat.com, crobi...@redhat.com, > arm...@

Re: [Qemu-devel] [RFC PATCH V4 6/6] monitor: Add drift info to 'info jit'

2014-07-16 Thread Paolo Bonzini
Il 16/07/2014 14:18, Sebastian Tanase ha scritto: -static int64_t clocks_offset; -if (!icount_align_option) { -return; +static int64_t realtime_clock_value; Does this really need to be static? +if (icount_align_option || !realtime_clock_value) { +realtime_clock