diff options
author | Liang Li <liang.z.li@intel.com> | 2015-05-20 16:41:25 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-05-20 06:30:26 -0400 |
commit | c447e76b4cabb49ddae8e49c5758f031f35d55fb (patch) | |
tree | d19c11fe52ca9c9078676902fbf893517fe5c626 /arch/x86/include | |
parent | 0fdd74f7784b5cdff7075736992bbb149b1ae49c (diff) |
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>
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 5a1faf3f043e..f4a555beef19 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -401,6 +401,7 @@ struct kvm_vcpu_arch { | |||
401 | struct kvm_mmu_memory_cache mmu_page_header_cache; | 401 | struct kvm_mmu_memory_cache mmu_page_header_cache; |
402 | 402 | ||
403 | struct fpu guest_fpu; | 403 | struct fpu guest_fpu; |
404 | bool eager_fpu; | ||
404 | u64 xcr0; | 405 | u64 xcr0; |
405 | u64 guest_supported_xcr0; | 406 | u64 guest_supported_xcr0; |
406 | u32 guest_xstate_size; | 407 | u32 guest_xstate_size; |