KVM: VMX: Give the guest ownership of cr0.ts when the fpu is active
authorAvi Kivity <avi@redhat.com>
Wed, 30 Dec 2009 16:07:40 +0000 (18:07 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:35:50 +0000 (12:35 -0300)
commitedcafe3c5a06f46407c3f60145a36f269e56ff7f
tree3fc9e54eec11f0481e5d9e8517941f651866463b
parent02daab21d94dc4cf01b2fd09863d59a436900322
KVM: VMX: Give the guest ownership of cr0.ts when the fpu is active

If the guest fpu is loaded, there is nothing interesing about cr0.ts; let
the guest play with it as it will.  This makes context switches between fpu
intensive guest processes faster, as we won't trap the clts and cr0 write
instructions.

[marcelo: fix cr0 read shadow update on fpu deactivation; kills F8 install]

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