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)
Thu, Aug 13, 6:22 PM
Unknown Object (File)
Thu, Aug 13, 6:21 PM
Unknown Object (File)
Thu, Aug 13, 5:55 PM
Unknown Object (File)
Wed, Aug 12, 6:39 AM
Unknown Object (File)
Tue, Aug 11, 8:07 AM
Unknown Object (File)
Mon, Aug 10, 11:43 PM
Unknown Object (File)
Sat, Jul 25, 10:50 PM
Unknown Object (File)
Fri, Jul 24, 5:07 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.