]> git.proxmox.com Git - mirror_qemu.git/commit
migration/dirtyrate: use QEMU_CLOCK_HOST to report start-time
authorAndrei Gudkov <gudkov.andrei@huawei.com>
Tue, 5 Sep 2023 09:18:39 +0000 (12:18 +0300)
committerHyman Huang <yong.huang@smartx.com>
Tue, 10 Oct 2023 00:04:12 +0000 (08:04 +0800)
commit320a6ccc769dc09ae7ad0b4838e322018f334bf4
treee44214c36959134ef87de6c8e5c5a3c965ac7494
parent34a68001f16208a574cbef0cd2d4e2d681faa604
migration/dirtyrate: use QEMU_CLOCK_HOST to report start-time

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 completed measurements are
too old or not. But this makes sense only if start-time
is reported as host wall-clock time.

This patch replaces source of start-time from
QEMU_CLOCK_REALTIME to QEMU_CLOCK_HOST.

Signed-off-by: Andrei Gudkov <gudkov.andrei@huawei.com>
Reviewed-by: Hyman Huang <yong.huang@smartx.com>
Message-Id: <399861531e3b24a1ecea2ba453fb2c3d129fb03a.1693905328.git.gudkov.andrei@huawei.com>
Signed-off-by: Hyman Huang <yong.huang@smartx.com>
migration/dirtyrate.c
qapi/migration.json