]> git.proxmox.com Git - mirror_qemu.git/commit - target-i386/kvm.c
KVM: Fix XSAVE feature bit enumeration
authorAndre Przywara <andre.przywara@amd.com>
Fri, 10 Jun 2011 13:56:28 +0000 (15:56 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 20 Jun 2011 18:26:21 +0000 (15:26 -0300)
commit31e8c69697becf5e0b54a6a0cef1d27109d469e9
treea62d3d6ca528d09106830e7bb2d05a1f687434d9
parent3d39c9593314946258bb334737aa7a4d113731d8
KVM: Fix XSAVE feature bit enumeration

When iterating through the XSAVE feature enumeration CPUID leaf (0xD)
we should not stop at the first zero EAX, but instead keep scanning
since there are gaps in the enumeration (ECX=1 for instance).
This fixes the proper usage of AVX in KVM guests.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
target-i386/kvm.c