x86/cpuid: Introduce dom0-cpuid command line option
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 14 Dec 2021 16:53:36 +0000 (16:53 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 16 Dec 2021 20:27:13 +0000 (20:27 +0000)
commit5bd2b82df28cb7390f5ffb00fac635d0b9e36674
treeef7767d1239aa5902df83fb5ca7aa4d2ca2be829
parent94c3df9188d6deed6fe213754492b11b9d409262
x86/cpuid: Introduce dom0-cpuid command line option

Specifically, this lets the user opt in to non-default features.

Collect all dom0 settings together in dom0_{en,dis}able_feat[], and apply it
to dom0's policy when other tweaks are being made.

As recalculate_cpuid_policy() is an expensive action, and dom0-cpuid= is
likely to only be used by the x86 maintainers for development purposes, forgo
the recalculation in the general case.

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