diff options
author | Sean Christopherson | 2019-12-09 12:05:17 -0800 |
---|---|---|
committer | Paolo Bonzini | 2020-01-08 18:16:02 +0100 |
commit | 95145c25a78cc0a9d3cbc75708abde432310c5a1 (patch) | |
tree | 5bdfd34337bfb6a0ef955f78d8d667cead2d4061 /include/linux/kvm_host.h | |
parent | f958bd2314d117f8c29f4821401bc1925bc2e5ef (diff) |
KVM: x86: Add a WARN on TIF_NEED_FPU_LOAD in kvm_load_guest_fpu()
WARN once in kvm_load_guest_fpu() if TIF_NEED_FPU_LOAD is observed, as
that would mean that KVM is corrupting userspace's FPU by saving
unknown register state into arch.user_fpu. Add a comment to explain
why KVM WARNs on TIF_NEED_FPU_LOAD instead of implementing logic
similar to fpu__copy().
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/linux/kvm_host.h')
0 files changed, 0 insertions, 0 deletions