Page MenuHomeFreeBSD

Allow the kernel to emulate the physical counter on arm64
ClosedPublic

Authored by andrew on Jun 27 2022, 3:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 24, 4:28 PM
Unknown Object (File)
Thu, Apr 23, 7:35 PM
Unknown Object (File)
Thu, Apr 23, 1:18 PM
Unknown Object (File)
Wed, Apr 15, 2:09 PM
Unknown Object (File)
Tue, Apr 14, 12:06 PM
Unknown Object (File)
Sat, Apr 11, 12:25 PM
Unknown Object (File)
Sat, Apr 11, 10:46 AM
Unknown Object (File)
Thu, Apr 9, 7:04 PM
Subscribers

Details

Summary

When running under a VM we don't have access to the physical counter.
Add support to emulate this instruction by handling the trap in the
kernel. As it is slow only enable when the hw.emulate_phys_counter
tunable is set on boot.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46134
Build 43023: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Aug 25 2022, 11:18 AM
This revision was automatically updated to reflect the committed changes.