Page MenuHomeFreeBSD

arm64: disable the physical timer for now if HCR_EL2.E2H is set
ClosedPublic

Authored by kevans on Mar 3 2023, 7:28 AM.
Tags
None
Referenced Files
F157064386: D38884.diff
Mon, May 18, 5:47 AM
F157064381: D38884.diff
Mon, May 18, 5:47 AM
Unknown Object (File)
Thu, Apr 30, 3:17 AM
Unknown Object (File)
Tue, Apr 28, 1:03 AM
Unknown Object (File)
Mon, Apr 27, 2:01 PM
Unknown Object (File)
Sun, Apr 26, 6:55 PM
Unknown Object (File)
Mon, Apr 20, 3:56 PM
Unknown Object (File)
Apr 15 2026, 9:23 AM
Subscribers

Details

Summary

On some hardware, we can't clear HCR_EL2.E2H so accesses to the physical
timer hopelessly trap to EL2. Stash off the value of HCR_EL2 and use it
in has_hyp() to avoid this.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kevans requested review of this revision.Mar 3 2023, 7:28 AM

Will also work with bhyve where we don't currently work with HCR_E2H on.

This revision is now accepted and ready to land.Mar 3 2023, 2:03 PM