KVM: Allow kvm_load_guest_fpu() even when !vcpu->fpu_active
authorAvi Kivity <avi@redhat.com>
Thu, 21 Jan 2010 13:31:45 +0000 (15:31 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:36:03 +0000 (12:36 -0300)
commit2608d7a12fd4badfe2eac534150f0715a7fd3ff3
tree98cccb92487d023e9519f323c91c090a43367510
parentab344828ebe729e52949d64046adaa196f6b9dbe
KVM: Allow kvm_load_guest_fpu() even when !vcpu->fpu_active

This allows accessing the guest fpu from the instruction emulator, as well as
being symmetric with kvm_put_guest_fpu().

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