x86: Use spec_ctrl_{enter,exit}_idle() in the S3/S5 path
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 17 Apr 2018 17:43:49 +0000 (18:43 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 19 Apr 2018 09:55:59 +0000 (10:55 +0100)
commitef3ab46493f650b7e5cca2b2578a99ca0cbff195
tree674e0bd466e9e2966fe19674b9fe7417e5895ec4
parenta996273d1fc10d14598985703227bfa35a91f681
x86: Use spec_ctrl_{enter,exit}_idle() in the S3/S5 path

The main purpose of this patch is to avoid opencoding the recovery logic at
the end, but also has the positive side effect of relaxing the SPEC_CTRL
mitigations when working to shut the final CPU down.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/acpi/power.c