]> xenbits.xensource.com Git - xen.git/commit
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, 3 Aug 2023 18:13:39 +0000 (19:13 +0100)
commit067a890347cf07fa1322ef0fad92d335542ea679
tree59b0f72fb724c76f560e1816a5706d2c0b57bfda
parent054a7ee1e6e693bf67ac34e60f54ac0335b9684b
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>
(cherry picked from commit 5bd2b82df28cb7390f5ffb00fac635d0b9e36674)
docs/misc/xen-command-line.pandoc
xen/arch/x86/cpuid.c