]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target-i386: kvm_check_features_against_host(): Use feature_word_info
authorEduardo Habkost <ehabkost@redhat.com>
Mon, 7 Jan 2013 18:20:46 +0000 (16:20 -0200)
committerAndreas Färber <afaerber@suse.de>
Tue, 15 Jan 2013 03:09:14 +0000 (04:09 +0100)
commitbffd67b01d96d3a59bf74a2d38f00e59d4b9c774
tree5399df9926ea66b82db1760725a306e9ddbc85d3
parent5ef5787627c07d053c2628fe720e814561fbfbe3
target-i386: kvm_check_features_against_host(): Use feature_word_info

Instead of carrying the CPUID leaf/register and feature name array on
the model_features_t struct, move that information into
feature_word_info so it can be reused by other functions.

The goal is to eventually kill model_features_t entirely, but to do that
we have to either convert x86_def_t.features to an array or use
offsetof() inside FeatureWordInfo (to replace the pointers inside
model_features_t). So by now just move most of the model_features_t
fields to FeatureWordInfo except for the two pointers to local
arguments.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
target-i386/cpu.c