Ticket #2869 (closed defect: fixed)
Debian host, Debian guest: rdtsc goes backwards -> fixed in SVN/3.0.6
Reported by: | markusl | Owned by: | |
---|---|---|---|
Component: | VMM/HWACCM | Version: | VirtualBox 3.0.4 |
Keywords: | rdtsc backwards | Cc: | |
Guest type: | Linux | Host type: | Linux |
Description
On Debian Lenny on a real PC, the attached program (rdtsc.cpp) works as expected. On Debian Lenny in VirtualBox 2.1.0 on Debian Lenny, the same program aborts after a few hundred thousand iterations, showing that rdtsc occasionally goes backwards. I've attached some sample output in output.txt.
If we ignore wrapping, rdtsc should only increase; it should never decrease.
Attachments
Change History
Changed 14 years ago by markusl
-
attachment
output.txt
added
Sample output when this program is run inside VirtualBox
comment:3 Changed 14 years ago by frank
- Component changed from VMM to VMM/HWACCM
Problem reproduced. Does not happen if VT-x / AMD-V is disabled.
comment:4 Changed 13 years ago by sandervl73
- Summary changed from Debian host, Debian guest: rdtsc goes backwards to Debian host, Debian guest: rdtsc goes backwards -> fixed in SVN/3.0.6
Note: See
TracTickets for help on using
tickets.
Demonstration program, to be compiled with G++