aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/host
diff options
context:
space:
mode:
authorOlivier Certner <olce.freebsd@certner.fr>2023-09-11 14:18:30 +0000
committerEd Maste <emaste@FreeBSD.org>2023-10-13 23:14:00 +0000
commitaea76bab141693f53c33a535a6e85fa2b73dba29 (patch)
treeb0eec07e41efea635c484b443979de467b31cdfa /usr.bin/host
parente8d85401cd8dbc88a822d9c54086c7526fb620f7 (diff)
downloadsrc-aea76bab141693f53c33a535a6e85fa2b73dba29.tar.gz
src-aea76bab141693f53c33a535a6e85fa2b73dba29.zip
x86: AMD Zen2: Zenbleed chicken bit mitigation
Applies only to bare-metal Zen2 processors. The system currently automatically applies it to all of them. Tunable/sysctl 'machdep.mitigations.zenbleed.enable' can be used to forcibly enable or disable the mitigation at boot or run-time. Possible values are: 0: Mitigation disabled 1: Mitigation enabled 2: Run the automatic determination. Currently, value 2 is the default and has identical effect as value 1. This might change in the future if we choose to take into account microcode revisions in the automatic determination process. The tunable/sysctl value is simply ignored on non-applicable CPU models, which is useful to apply the same configuration on a set of machines that do not all have Zen2 processors. Trying to set it to any integer value not listed above is silently equivalent to setting it to value 2 (automatic determination). The current mitigation state can be queried through sysctl 'machdep.mitigations.zenbleed.state', which returns "Not applicable", "Mitigation enabled" or "Mitigation disabled". Note that this state is not guaranteed to be accurate in case of intervening modifications of the corresponding chicken bit directly via cpuctl(4) (this includes the cpucontrol(8) utility). Resetting the desired policy through 'machdep.mitigations.zenbleed.enable' (possibly to its current value) will reset the hardware state and ensure that the reported state is again coherent with it. Reviewed by: kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D41817 (cherry picked from commit ebaea1bcd2eb0aa90937637ed305184b6fedc69b) (cherry picked from commit 6c59ac8c7934064d63490b3f20fe92d0f87ef4b2) Approved by: re (gjb)
Diffstat (limited to 'usr.bin/host')
0 files changed, 0 insertions, 0 deletions