diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2016-09-22 14:33:01 -0300 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2016-09-27 16:17:17 -0300 |
commit | 4928cd6de6b4211a79f98c8dc39115be1e815c2b (patch) | |
tree | 3950bca3f48341e384a1a20c847f3fb9736a74dc /target-i386/hyperv.c | |
parent | 9646f4927faf68e8690588c2fd6dc9834c440b58 (diff) |
target-i386: xsave: Calculate enabled components only once
Instead of checking both env->features and ena_mask at two
different places in the CPUID code, initialize ena_mask based on
the features that are enabled for the CPU, and then clear
unsupported bits based on kvm_arch_get_supported_cpuid().
The results should be exactly the same, but it will make it
easier to move the mask calculation elsewhare, and reuse
x86_cpu_filter_features() for the kvm_arch_get_supported_cpuid()
check.
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target-i386/hyperv.c')
0 files changed, 0 insertions, 0 deletions