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
Unknown Object (File)
Dec 20 2023, 7:10 AM
Unknown Object (File)
Nov 6 2023, 7:46 AM
Unknown Object (File)
Nov 3 2023, 3:57 PM
Unknown Object (File)
Nov 1 2023, 6:53 PM
Unknown Object (File)
Oct 9 2023, 3:10 AM
Unknown Object (File)
Oct 5 2023, 6:41 AM
Unknown Object (File)
Sep 4 2023, 12:07 PM
Unknown Object (File)
Jul 13 2023, 6:32 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