]> git.baikalelectronics.ru Git - kernel.git/commit
x86/bugs: Group MDS, TAA & Processor MMIO Stale Data mitigations
authorPawan Gupta <pawan.kumar.gupta@linux.intel.com>
Fri, 20 May 2022 03:30:12 +0000 (20:30 -0700)
committerBorislav Petkov <bp@suse.de>
Sat, 21 May 2022 10:14:56 +0000 (12:14 +0200)
commit8001f10e607606de96a967a400e0abb60047c730
treefdfdedc1b30a546904b58d911bfbcd75893b6726
parentcd1291d1147af5eabca219e78572c9628fbdba57
x86/bugs: Group MDS, TAA & Processor MMIO Stale Data mitigations

MDS, TAA and Processor MMIO Stale Data mitigations rely on clearing CPU
buffers. Moreover, status of these mitigations affects each other.
During boot, it is important to maintain the order in which these
mitigations are selected. This is especially true for
md_clear_update_mitigation() that needs to be called after MDS, TAA and
Processor MMIO Stale Data mitigation selection is done.

Introduce md_clear_select_mitigation(), and select all these mitigations
from there. This reflects relationships between these mitigations and
ensures proper ordering.

Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/kernel/cpu/bugs.c