]> xenbits.xensource.com Git - xen.git/commit
x86/cpu-policy: MSR_ARCH_CAPS feature names
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 12 May 2023 17:50:59 +0000 (18:50 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 24 May 2023 18:04:41 +0000 (19:04 +0100)
commitce8c930851a5ca21c4e70f83be7e8b290ce1b519
tree5b99e6cc8c62e0e9bf4411d525c62ee50b4532bb
parentd9fe459ffad8a6eac2f695adb2331aff83c345d1
x86/cpu-policy: MSR_ARCH_CAPS feature names

Seed the default visibility from the dom0 special case, which for the most
part just exposes the *_NO bits.  EIBRS is the one non-*_NO bit, which is
"just" a status bit to the guest indicating a change in implemention of IBRS
which is already fully supported.

Insert a block dependency from the ARCH_CAPS CPUID bit to the entire content
of the MSR.  This is because MSRs have no structure information similar to
CPUID, and used by x86_cpu_policy_clear_out_of_range_leaves(), in order to
bulk-clear inaccessable words.

The overall CPUID bit is still max-only, so all of MSR_ARCH_CAPS is hidden in
the default policies.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
tools/misc/xen-cpuid.c
xen/include/public/arch-x86/cpufeatureset.h
xen/tools/gen-cpuid.py