tools/libxc: Simplify xc_get_static_cpu_featuremask()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 26 Feb 2020 18:15:35 +0000 (18:15 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 27 Feb 2020 18:54:58 +0000 (18:54 +0000)
commit90f5b8819c2f73ec1b7fa293e7fb2a4dd256d838
tree6455ef6d5f146b2428e6a5811f50a77ce728dfcb
parent625a95cc17d5dff8f357cacb83b37da261f2207c
tools/libxc: Simplify xc_get_static_cpu_featuremask()

Drop XC_FEATUREMASK_DEEP_FEATURES.  It isn't used by any callers, and unlike
the other static masks, won't be of interest to anyone without other pieces of
cpuid-autogen.h

In xc_get_static_cpu_featuremask(), use a 2d array instead of individually
named variables, and drop the switch statement completely.

No practical change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
tools/libxc/include/xenctrl.h
tools/libxc/xc_cpuid_x86.c