Re: [PATCH] migration/dirtyrate: use QEMU_CLOCK_HOST to report start-time

2023-09-24 Thread Yong Huang
On Tue, Sep 5, 2023 at 5:19 PM Andrei Gudkov wrote: > Currently query-dirty-rate uses QEMU_CLOCK_REALTIME as > the source for start-time field. This translates to > clock_gettime(CLOCK_MONOTONIC), i.e. number of seconds > since host boot. This is not very useful. The only > reasonable use case of

Re: [PATCH] migration/dirtyrate: use QEMU_CLOCK_HOST to report start-time

2023-09-19 Thread gudkov . andrei--- via
On Tue, Sep 19, 2023 at 11:14:52AM +0200, Markus Armbruster wrote: > Philippe Mathieu-Daudé writes: > > > Hi Andrei, > > > > On 5/9/23 11:18, Andrei Gudkov via wrote: > >> Currently query-dirty-rate uses QEMU_CLOCK_REALTIME as > >> the source for start-time field. This translates to > >> clock_ge

Re: [PATCH] migration/dirtyrate: use QEMU_CLOCK_HOST to report start-time

2023-09-19 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > Hi Andrei, > > On 5/9/23 11:18, Andrei Gudkov via wrote: >> Currently query-dirty-rate uses QEMU_CLOCK_REALTIME as >> the source for start-time field. This translates to >> clock_gettime(CLOCK_MONOTONIC), i.e. number of seconds >> since host boot. This is not very

Re: [PATCH] migration/dirtyrate: use QEMU_CLOCK_HOST to report start-time

2023-09-05 Thread Philippe Mathieu-Daudé
Hi Andrei, On 5/9/23 11:18, Andrei Gudkov via wrote: Currently query-dirty-rate uses QEMU_CLOCK_REALTIME as the source for start-time field. This translates to clock_gettime(CLOCK_MONOTONIC), i.e. number of seconds since host boot. This is not very useful. The only reasonable use case of start-t

[PATCH] migration/dirtyrate: use QEMU_CLOCK_HOST to report start-time

2023-09-05 Thread Andrei Gudkov via
Currently query-dirty-rate uses QEMU_CLOCK_REALTIME as the source for start-time field. This translates to clock_gettime(CLOCK_MONOTONIC), i.e. number of seconds since host boot. This is not very useful. The only reasonable use case of start-time I can imagine is to check whether previously complet