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)
commitc447e76b4cabb49ddae8e49c5758f031f35d55fb
treed19c11fe52ca9c9078676902fbf893517fe5c626
parent0fdd74f7784b5cdff7075736992bbb149b1ae49c
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