mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
target-i386: xsave: Calculate set of xsave components on realize
Instead of doing complex calculations and calling kvm_arch_get_supported_cpuid() inside cpu_x86_cpuid(), calculate the set of required XSAVE components earlier, at realize time. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
1fda6198e4
commit
2ca8a8becc
2 changed files with 33 additions and 23 deletions
|
@ -1122,6 +1122,7 @@ typedef struct CPUX86State {
|
|||
uint32_t cpuid_vendor3;
|
||||
uint32_t cpuid_version;
|
||||
FeatureWordArray features;
|
||||
uint64_t xsave_components;
|
||||
uint32_t cpuid_model[12];
|
||||
|
||||
/* MTRRs */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue