]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Enable AVX for guest
authorSheng Yang <sheng@linux.intel.com>
Tue, 22 Jun 2010 05:49:21 +0000 (13:49 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:47:10 +0000 (10:47 +0300)
commit541558e1340f4d821e97cc4d75e3bc24f788f29f
tree3a1f358ea1cc29df958a6b3d535114987650e101
parentfcfec66229af01e6db0610fd6c66b48da5d28b02
KVM: x86: Enable AVX for guest

Enable Intel(R) Advanced Vector Extension(AVX) for guest.

The detection of AVX feature includes OSXSAVE bit testing. When OSXSAVE bit is
not set, even if AVX is supported, the AVX instruction would result in UD as
well. So we're safe to expose AVX bits to guest directly.

Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c