HomeFreeBSD

Make it possible to re-evaluate cpu_features.

Description

Make it possible to re-evaluate cpu_features.

Add cpuctl(4) ioctl CPUCTL_EVAL_CPU_FEATURES which forces re-read of
cpu_features, cpu_features2, cpu_stdext_features, and
std_stdext_features2.

The intent is to allow the kernel to see the changes in the CPU
features after micocode update. Of course, the update is not atomic
across variables and not synchronized with readers. See the man page
warning as well.

Reviewed by: imp (previous version), jilles
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D13770

Details

Provenance
kibAuthored on
Reviewer
imp
Differential Revision
D13770: Make it possible to re-evaluate cpu_features.
Parents
rS327596: In sendfile_iodone() both pru_abort and sorele need to be executed
Branches
Unknown
Tags
Unknown