x86/spec-ctrl: Mitigate TAA after S3 resume
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 20 May 2021 00:21:39 +0000 (01:21 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 8 Jun 2021 17:36:03 +0000 (18:36 +0100)
commit0ff7f9c5aa02cd2469a8fc03f1ed262f18933721
treec640bb6dc5909170bebd46b9279b1c7f0ad478e8
parentfcf98eff7321a5ed8d9b4fccf44cde8ad7e2ec7e
x86/spec-ctrl: Mitigate TAA after S3 resume

The user chosen setting for MSR_TSX_CTRL needs restoring after S3.

All APs get the correct setting via start_secondary(), but the BSP was missed
out.

This is XSA-377 / CVE-2021-28690.

Fixes: 8c4330818f6 ("x86/spec-ctrl: Mitigate the TSX Asynchronous Abort sidechannel")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
(cherry picked from commit 8cf276cb2e0b99b96333865873f56b0b31555ff1)
xen/arch/x86/acpi/power.c