]> xenbits.xensource.com Git - xen.git/commit
x86/intel: Expose MSR_ARCH_CAPS to dom0
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 10 Apr 2018 15:25:40 +0000 (16:25 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 31 Aug 2020 12:43:26 +0000 (13:43 +0100)
commite46474278a0e87e2b32ad5dd5fc20e8d2cb0688b
treeafc390c74b330e63c2ed28b75d8d185699863711
parentd400dc5729e4e132d61c2e7df57d81aaed762044
x86/intel: Expose MSR_ARCH_CAPS to dom0

The overhead of (the lack of) MDS_NO alone has been measured at 30% on some
workloads.  While we're not in a position yet to offer MSR_ARCH_CAPS generally
to guests, dom0 doesn't migrate, so we can pass a subset of hardware values
straight through.

This will cause PVH dom0's not to use KPTI by default, and all dom0's not to
use VERW flushing by default, and to use eIBRS in preference to retpoline on
recent Intel CPUs.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpuid.c
xen/arch/x86/msr.c