]> bbs.cooldavid.org Git - net-next-2.6.git/commit
x86, cpu: Fix allowed CPUID bits for KVM guests
authorAndre Przywara <andre.przywara@amd.com>
Mon, 6 Sep 2010 13:14:19 +0000 (15:14 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 8 Sep 2010 20:34:15 +0000 (13:34 -0700)
commit6d886fd042634c0d3312bace63a5d0c541b721dc
tree9eff8fa8b97d33f185f9924ea108ece2448616e0
parent33ed82fb6c5f032151f7e9f1ac7b667f78f426b8
x86, cpu: Fix allowed CPUID bits for KVM guests

The AMD extensions to AVX (FMA4, XOP) work on the same YMM register set
as AVX, so they are safe for guests to use, as long as AVX itself
is allowed. Add F16C and AES on the way for the same reasons.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
LKML-Reference: <1283778860-26843-4-git-send-email-andre.przywara@amd.com>
Acked-by: Avi Kivity <avi@redhat.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kvm/x86.c