]> git.baikalelectronics.ru Git - kernel.git/commit
kvm/fpu: Enable eager restore kvm FPU for MPX
authorLiang Li <liang.z.li@intel.com>
Wed, 20 May 2015 20:41:25 +0000 (04:41 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 20 May 2015 10:30:26 +0000 (12:30 +0200)
commit526ae932d8cd3c46026959c3c879c66ea574317b
treed19c11fe52ca9c9078676902fbf893517fe5c626
parent142e565f079e4d0768a387192a5a28014913a5c6
kvm/fpu: Enable eager restore kvm FPU for MPX

The MPX feature requires eager KVM FPU restore support. We have verified
that MPX cannot work correctly with the current lazy KVM FPU restore
mechanism. Eager KVM FPU restore should be enabled if the MPX feature is
exposed to VM.

Signed-off-by: Yang Zhang <yang.z.zhang@intel.com>
Signed-off-by: Liang Li <liang.z.li@intel.com>
[Also activate the FPU on AMD processors. - Paolo]
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/cpuid.c
arch/x86/kvm/cpuid.h
arch/x86/kvm/x86.c