/[base]
ViewVC logotype

Revision 333125


Jump to revision: Previous Next
Author: kib
Date: Mon Apr 30 20:18:32 2018 UTC (6 years, 2 months ago)
Changed paths: 2
Log Message:
Turn off IBRS on suspend.

Resume starts CPU from the init state, which clears any loaded
microcode updates.  As result, IBRS MSRs are no longer available,
until the microcode is reloaded.

I have to forcibly clear cpu_stdext_feature3, which assumes that CPUID
leaf 7 reg %ebx does not report anything except Meltdown/Spectre bugs
bits.  If future CPUs add new bits there, hw_ibrs_recalculate() and
identify_cpu1()/identify_cpu2() need to be adjusted for that.

Submitted and tested by:	Michael Danilov <mike.d.ft402@gmail.com>
PR:	227866
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D15236


Changed paths

Path Details
Directoryhead/sys/x86/acpica/acpi_wakeup.c modified , text changed
Directoryhead/sys/x86/include/x86_var.h modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27