Open trasz opened 7 years ago
Looks like it's caused by b79c3d9.
A plausible explanation (proposed by Alex) is that the Qemu timer interrupt fires from the host's virtual timer, and thus its frequency depends on how much host CPU time the qemu process is using at the moment. At the same time the Counter CP0 register is updated from the host's monotonic clock (a wallclock), so the guest time keeps being updated correctly.
Sometimes - I'm not sure what it depends on, it kind of seems to occur on a freshly booted system, I can observe this:
At the same time in another terminal:
Also this, there was about 10 seconds between invocations; observe how clock0 has rate 566, but the actual value doesn't change at all: