KVM: Activate fpu on clts
authorAvi Kivity <avi@redhat.com>
Thu, 21 Jan 2010 13:31:47 +0000 (15:31 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:36:04 +0000 (12:36 -0300)
commit6b52d18605f580bdffaffd48c8da228c3e848deb
treeb2bf6e704dc5c0b44714d38c955460d70f76b913
parente5bb40251a920cdd9d12c569c6aab0bdd0279e4e
KVM: Activate fpu on clts

Assume that if the guest executes clts, it knows what it's doing, and load the
guest fpu to prevent an #NM exception.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c