]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target-i386: Register aliases for feature names with underscores
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 30 Sep 2016 18:49:38 +0000 (15:49 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 17 Oct 2016 17:44:49 +0000 (15:44 -0200)
commit54b8dc7c19cd781e96f1e9b001ca6001d804eb19
tree763ef2f6f2194cd695309a58b4f8a875899275cb
parent04d99c3c61f4bdc0450dbeb6512b6dd743baca65
target-i386: Register aliases for feature names with underscores

Registering the actual names containing underscores as aliases
will allow management software to be aware that the old
compatibility names are suported, and will make feat2prop() calls
unnecessary when using feature names.

Also, this will help us avoid making the code support underscores
on feature names that never had them in the first place. e.g.
"+tsc_deadline" was never supported and doesn't need to be
translated to "+tsc-deadline".

In other word: this will require less magic translation of
strings, and simple 1:1 match between the config options and
actual QOM properties.

Note that the underscores are still present in the
FeatureWordInfo::feat_names arrays, because
add_flagname_to_bitmaps() needs them to be kept. The next patches
will remove add_flagname_to_bitmaps() and will allow us to
finally remove the aliases from feat_names.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target-i386/cpu.c