diff options
author | Liang Li <liang.z.li@intel.com> | 2015-05-20 23:41:25 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-06-06 18:20:48 +0300 |
commit | aeeaad9ec0e6b76c4b3f66d11e1d0e14294dd3d3 (patch) | |
tree | 5c92110ecd188b48ee48715e8a49b087822e3d1d /arch/x86/include | |
parent | dbedd5a5e824edbff0d95d2a0b321235a0d4e900 (diff) | |
download | linux-aeeaad9ec0e6b76c4b3f66d11e1d0e14294dd3d3.tar.xz |
kvm/fpu: Enable eager restore kvm FPU for MPX
commit c447e76b4cabb49ddae8e49c5758f031f35d55fb upstream.
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]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 7672aac9b424..1c0fb570b5c2 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -405,6 +405,7 @@ struct kvm_vcpu_arch { struct kvm_mmu_memory_cache mmu_page_header_cache; struct fpu guest_fpu; + bool eager_fpu; u64 xcr0; u64 guest_supported_xcr0; u32 guest_xstate_size; |