x86/spec-ctrl: Support Intel PSFD for guests
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 19 Oct 2021 20:22:27 +0000 (21:22 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 8 Feb 2022 18:01:32 +0000 (18:01 +0000)
commit2d8eade97343e99c26b004a05868532613007c8d
treed3b35b2ee34378c4af35c8bc8cc6f342d014d5a6
parentb8fec3e3f513dccbe5e25acf325673e50614d863
x86/spec-ctrl: Support Intel PSFD for guests

The Feb 2022 microcode from Intel retrofits AMD's MSR_SPEC_CTRL.PSFD interface
to Sunny Cove (IceLake) and later cores.

Update the MSR_SPEC_CTRL emulation, and expose it to guests.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
(cherry picked from commit 52ce1c97844db213de01c5300eaaa8cf101a285f)
tools/libs/light/libxl_cpuid.c
tools/misc/xen-cpuid.c
xen/arch/x86/msr.c
xen/arch/x86/spec_ctrl.c
xen/include/public/arch-x86/cpufeatureset.h
xen/tools/gen-cpuid.py