Review Board 2.0.15


dev, arm: Add virtual timers to the generic timer model

Review Request #2763 - Created May 7, 2015 and submitted - Latest diff uploaded

Information
Andreas Sandberg
gem5
default
Reviewers
Default
Changeset 10840:63fefbafc6bc
---------------------------
dev, arm: Add virtual timers to the generic timer model

The generic timer model currently does not support virtual
counters. Virtual and physical counters both tick with the same
frequency. However, virtual timers allow a hypervisor to set an offset
that is subtracted from the counter when it is read. This enables the
hypervisor to present a time base that ticks with virtual time in the
VM (i.e., doesn't tick when the VM isn't running). Modern Linux
kernels generally assume that virtual counters exist and try to use
them by default.

ARM regressions pass. All backends build. Tested manually with modified DTB that enables virtual counters.