Commit f92e794d authored by Min Fanlei's avatar Min Fanlei Committed by guzitao
Browse files

sw64: kvm: fix inconsitent timing metrics

Sunway inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I73O8P



--------------------------------

Guest os programs next event based on ticks, which is inconsistent
with expired time of hypervisor's hrtimer based on nanosencods.

This patch converts virtual clock event ticks to nanoseconds(by
host initial CPU frequency temporarily) to fix it.

Signed-off-by: default avatarMin Fanlei <minfanlei@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent 23733211
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment