]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/arm/imx8mp-evk: Fix guest time in KVM mode
authorBernhard Beschow <shentey@gmail.com>
Sat, 1 Nov 2025 12:01:30 +0000 (13:01 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 3 Nov 2025 10:48:17 +0000 (10:48 +0000)
commit74bc6caea92de3cf6a6772d0d248a9e26aea2dd3
treeb460523d6035b0c8fa444bda36b3486cd07a6d04
parent094fd7d36f2a7d3c9fb22254888fe7b99b39631b
hw/arm/imx8mp-evk: Fix guest time in KVM mode

The imx8mp DTB hardcodes the clock frequency of the system counter to 8MHz.
In KVM mode, the host CPU is used whose system counter runs at a different
frequency, resulting in the guest clock running slower or faster. Fix this
by not hardcoding the clock frequency which makes the Linux driver read
the real clock frequency from the register.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Message-id: 20251101120130.236721-3-shentey@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/imx8mp-evk.c