OSDN Git Service

x86,kvm: remove KVM emulator get_fpu / put_fpu
authorRik van Riel <riel@redhat.com>
Tue, 14 Nov 2017 21:54:24 +0000 (16:54 -0500)
committerRadim Krčmář <rkrcmar@redhat.com>
Tue, 5 Dec 2017 20:20:24 +0000 (21:20 +0100)
commit6ab0b9feb82a7ac09956e6761fec73cd47789df5
treeedb88b568469df2799a64e355d2cfb250c98ad62
parentf775b13eedee2f7f3c6fdd4e90fb79090ce5d339
x86,kvm: remove KVM emulator get_fpu / put_fpu

Now that get_fpu and put_fpu do nothing, because the scheduler will
automatically load and restore the guest FPU context for us while we
are in this code (deep inside the vcpu_run main loop), we can get rid
of the get_fpu and put_fpu hooks.

Signed-off-by: Rik van Riel <riel@redhat.com>
Suggested-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_emulate.h
arch/x86/kvm/emulate.c
arch/x86/kvm/x86.c