HomeFreeBSD

Allow the kernel to emulate the physical counter on arm64

Description

Allow the kernel to emulate the physical counter on arm64

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.

Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D35613

Details

Provenance
andrewAuthored on Jun 27 2022, 12:37 PM
Differential Revision
D35613: Allow the kernel to emulate the physical counter on arm64
Parents
rG2aba6e7aaf2f: stress2: Added a regression test
Branches
Unknown
Tags
Unknown