#11873: "Time running" doesn't reset over restart under virtualbox.
-----------------------------+----------------------------
Reporter: jstressman | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone: R1
Component: System/Kernel | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
-----------------------------+----------------------------
Comment (by axeld):
This is just a bug in VirtualBox; Haiku uses the `rdtsc` instruction to
compute the system time on x86. According to the official Intel
documentation, this counter should be reset when the CPU is reset (chapter
17.15 in Intel® 64 and IA-32 Architectures
Software Developer’s Manual
Volume 3 from September 2016):
''"The time-stamp counter (as implemented in the P6 family, Pentium,
Pentium M, Pentium 4, Intel Xeon, Intel Core
Solo and Intel Core Duo processors and later processors) is a 64-bit
counter that is set to 0 following a RESET of
the processor."''
While we could work around it by means of resetting the TSC manually, I
don't think it's worth it. I'll report the bug to the VirtualBox project.
--
Ticket URL: <https://dev.haiku-os.org/ticket/11873#comment:3>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.