Re: [Qemu-devel] qemu_clock_get_ns does not take into account icount_time_shift

2018-07-25 Thread Humberto "SilverOne" Carvalho
Hello, Actually this is incorrect because cpu_get_icount() invokes cpu_icount_to_ns later on. i apologize for the spam. Best Regards, Humberto "SilverOne" Carvalho On Wed, Jul 25, 2018 at 8:25 PM Humberto "SilverOne" Carvalho < silveron...@gmail.com> wrote: > Hello, > > When using icount with s

[Qemu-devel] qemu_clock_get_ns does not take into account icount_time_shift

2018-07-25 Thread Humberto "SilverOne" Carvalho
Hello, When using icount with shift, virtual time is defined as icount << N. However, qemu_clock_get_ns simply returns cpu_get_icount, thereby returning icount instead of icount << N. If you check the qemu/util/qemu-timer.c file you will find the following function: 597: int64_t qemu_clock_get_n