]> xenbits.xensource.com Git - people/larsk/xen.git/commit
x86/cpuid: Extend the cpuid= option to support all named features
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 26 Nov 2018 17:06:23 +0000 (17:06 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 6 Sep 2019 16:16:22 +0000 (17:16 +0100)
commit74791511067aaff67efbd2555a5f635246264453
tree24435ffb9c7e7f71326ad3cf38ce03621f16c49a
parent71946aa528edaff5ea5e1a2ba6f4d462b9623efe
x86/cpuid: Extend the cpuid= option to support all named features

For gen-cpuid.py, fix a comment describing self.names, and generate the
reverse mapping in self.values.  Write out INIT_FEATURE_NAMES which maps a
string name to a bit position.

For parse_cpuid(), use cmdline_strcmp() and perform a binary search over
INIT_FEATURE_NAMES.  A tweak to cmdline_strcmp() is needed to break at equals
signs as well.

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