KVM: x86: Use unlazy_fpu() for host FPU
authorSheng Yang <sheng@linux.intel.com>
Mon, 17 May 2010 09:08:27 +0000 (17:08 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:35:48 +0000 (10:35 +0300)
commit7cf30855e02be7a207ffebb8b9350986f2ba83e9
tree114f0f2dfbe425bfb7736ebbeb1655c23d636db4
parent5ee481da7b62a992b91f958bf26aaaa92354c170
KVM: x86: Use unlazy_fpu() for host FPU

We can avoid unnecessary fpu load when userspace process
didn't use FPU frequently.

Derived from Avi's idea.

Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c