aboutsummaryrefslogtreecommitdiff
path: root/target-i386/bpt_helper.c
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2016-09-22 14:33:01 -0300
committerEduardo Habkost <ehabkost@redhat.com>2016-09-27 16:17:17 -0300
commit4928cd6de6b4211a79f98c8dc39115be1e815c2b (patch)
tree3950bca3f48341e384a1a20c847f3fb9736a74dc /target-i386/bpt_helper.c
parent9646f4927faf68e8690588c2fd6dc9834c440b58 (diff)
downloadqemu-4928cd6de6b4211a79f98c8dc39115be1e815c2b.zip
qemu-4928cd6de6b4211a79f98c8dc39115be1e815c2b.tar.gz
qemu-4928cd6de6b4211a79f98c8dc39115be1e815c2b.tar.bz2
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/bpt_helper.c')
0 files changed, 0 insertions, 0 deletions