]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 9 Jun 2015 17:43:49 +0000 (13:43 -0400)
commit08a468bf87293f0d18f7ce8ad66a42f4371395f7
tree204eaaace48dbf8e3d57034dbdf3c6fb510dbf2f
parent95678fb1f88e2a397378827536173534cf16a942
kvm/fpu: Enable eager restore kvm FPU for MPX

[ Upstream commit c447e76b4cabb49ddae8e49c5758f031f35d55fb ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/cpuid.c
arch/x86/kvm/cpuid.h
arch/x86/kvm/x86.c