From 0530a9360f72fa080d17eaf96b384a79b83a6e7c Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Fri, 5 Jan 2018 21:06:19 +0000 Subject: 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 --- sys/sys/cpuctl.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/sys') diff --git a/sys/sys/cpuctl.h b/sys/sys/cpuctl.h index 70212eb3a851..8c7fb65632f5 100644 --- a/sys/sys/cpuctl.h +++ b/sys/sys/cpuctl.h @@ -59,5 +59,6 @@ typedef struct { #define CPUCTL_MSRSBIT _IOWR('c', 5, cpuctl_msr_args_t) #define CPUCTL_MSRCBIT _IOWR('c', 6, cpuctl_msr_args_t) #define CPUCTL_CPUID_COUNT _IOWR('c', 7, cpuctl_cpuid_count_args_t) +#define CPUCTL_EVAL_CPU_FEATURES _IO('c', 8) #endif /* _CPUCTL_H_ */ -- cgit v1.2.3