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)
Sun, Sep 22, 2:22 AM
Unknown Object (File)
Wed, Sep 18, 7:17 PM
Unknown Object (File)
Wed, Sep 18, 2:42 AM
Unknown Object (File)
Tue, Sep 17, 9:31 PM
Unknown Object (File)
Tue, Sep 17, 4:17 PM
Unknown Object (File)
Mon, Sep 16, 8:24 AM
Unknown Object (File)
Sun, Sep 1, 6:33 PM
Unknown Object (File)
Aug 13 2024, 11:51 PM
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