Review Board 2.0.15


kvm: Update the system's totalNumInsts on exit from KVM

Review Request #1889 - Created June 2, 2013 and submitted - Latest diff uploaded

Information
Andreas Sandberg
gem5
default
Reviewers
Default
Changeset 9734:068e76f5a9ad
---------------------------
kvm: Maintain a local instruction counter and system->totalNumInsts

Update the system's totalNumInst counter when exiting from KVM and
maintain internal an absolute instruction count instead of relying on
the one from perf.

***

Notes to reviewers: I'm not sure about the semantics of totalInsts() and totalOps() as their behavior is completely undocumented. It seems like they used to be reset on a stat reset, but that code is commented out in the BaseSimpleCPU.