]> xenbits.xensource.com Git - xen.git/commit
tools/xen-cpuid: Rework the handling of dynamic featuresets
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 10 Mar 2023 19:04:22 +0000 (19:04 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 3 Aug 2023 18:13:39 +0000 (19:13 +0100)
commit186ece0292aa83d63d2805375e7f4bbb777baf4b
tree717ab82c53a1f2b859fa3440a2043e3f11e1a2f3
parent067a890347cf07fa1322ef0fad92d335542ea679
tools/xen-cpuid: Rework the handling of dynamic featuresets

struct fsinfo is the vestigial remnant of an older internal design which
didn't survive very long.

Simplify things by inlining get_featureset() and having a single memory
allocation that gets reused.  This in turn changes featuresets[] to be a
simple list of names, so rename it to fs_names[].

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
(cherry picked from commit ec3474e1dd42e6f410601f50b6e74fb7c442cfb9)
tools/misc/xen-cpuid.c