]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target-i386: xsave: Calculate set of xsave components on realize
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 22 Sep 2016 20:27:56 +0000 (17:27 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 27 Sep 2016 20:03:28 +0000 (17:03 -0300)
commit2ca8a8becc2eeb5262e478ce502f5daa53f3d0bc
treeaa0ef29badccebb2b1ff5875a2c7b91e27d5dd21
parent1fda6198e4126af9988754c8824cfc9928649890
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>
target-i386/cpu.c
target-i386/cpu.h