]> Git Repo - linux.git/commit
x86/mmio: Disable KVM mitigation when X86_FEATURE_CLEAR_CPU_BUF is set
authorPawan Gupta <[email protected]>
Mon, 11 Mar 2024 19:29:43 +0000 (12:29 -0700)
committerDave Hansen <[email protected]>
Mon, 11 Mar 2024 20:13:28 +0000 (13:13 -0700)
commite95df4ec0c0c9791941f112db699fae794b9862a
tree273916b25df45c01c17612b7715a432f40444604
parent90d35da658da8cff0d4ecbb5113f5fac9d00eb72
x86/mmio: Disable KVM mitigation when X86_FEATURE_CLEAR_CPU_BUF is set

Currently MMIO Stale Data mitigation for CPUs not affected by MDS/TAA is
to only deploy VERW at VMentry by enabling mmio_stale_data_clear static
branch. No mitigation is needed for kernel->user transitions. If such
CPUs are also affected by RFDS, its mitigation may set
X86_FEATURE_CLEAR_CPU_BUF to deploy VERW at kernel->user and VMentry.
This could result in duplicate VERW at VMentry.

Fix this by disabling mmio_stale_data_clear static branch when
X86_FEATURE_CLEAR_CPU_BUF is enabled.

Signed-off-by: Pawan Gupta <[email protected]>
Signed-off-by: Dave Hansen <[email protected]>
Reviewed-by: Dave Hansen <[email protected]>
arch/x86/kernel/cpu/bugs.c
This page took 0.049804 seconds and 4 git commands to generate.