Pawan Gupta e95df4ec0c 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 <pawan.kumar.gupta@linux.intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Dave Hansen <dave.hansen@linux.intel.com>
2024-03-11 13:13:28 -07:00
..
2024-01-18 17:25:39 -08:00
2024-02-23 13:54:37 +01:00
2024-01-10 18:13:44 -08:00
2024-01-17 11:27:23 -08:00
2024-01-18 15:01:28 -08:00
2024-03-03 09:47:19 -08:00
2024-03-01 12:44:33 -08:00
2024-02-23 09:54:13 -08:00
2024-01-20 09:24:06 -08:00