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)
Tue, Oct 6, 5:36 AM
Unknown Object (File)
Tue, Oct 6, 4:33 AM
Unknown Object (File)
Tue, Oct 6, 2:15 AM
Unknown Object (File)
Tue, Sep 29, 5:01 AM
Unknown Object (File)
Tue, Sep 22, 10:14 PM
Unknown Object (File)
Fri, Sep 18, 9:41 PM
Unknown Object (File)
Sep 8 2026, 5:30 AM
Unknown Object (File)
Sep 6 2026, 12:24 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.