Page MenuHomeFreeBSD

arm64: Move BP hardening and SSBD workaround to CPU_FEAT framework
ClosedPublic

Authored by sarah.walker2_arm.com on Wed, Oct 15, 12:35 PM.
Tags
None
Referenced Files
F132610547: D53112.id164300.diff
Sat, Oct 18, 10:01 AM
F132593438: D53112.id164290.diff
Sat, Oct 18, 6:25 AM
F132539624: D53112.id164217.diff
Fri, Oct 17, 7:35 PM
F132539623: D53112.id.diff
Fri, Oct 17, 7:35 PM
F132539621: D53112.id164300.diff
Fri, Oct 17, 7:35 PM
Unknown Object (File)
Fri, Oct 17, 10:37 AM
Unknown Object (File)
Fri, Oct 17, 6:40 AM
Unknown Object (File)
Fri, Oct 17, 4:40 AM
Subscribers

Details

Summary

Port the BP hardening and SSBD workaround from cpu_quirks to the
CPU_FEAT framework.

Sponsored by: Arm Ltd

Diff Detail

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

Event Timeline

The best names I can come up with for a workaround for a missing feature is feat_foo_missing or feat_foo_workaround

sys/arm64/arm64/spec_workaround.c
6

Extra line

33

Missing line

113

I'd like to keep feat_* for architectural features. The closest feature is FEAT_CSV2, however this tells us when the workaround is not needed, so maybe we could come up with something based on that.

The name is used in the hw.feat sysctls & can be used to enable/disable features/workarounds on boot.

165

The appropriate feature here is FEAT_SSBS

This revision is now accepted and ready to land.Thu, Oct 16, 2:52 PM