aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorSheng Yang <sheng@linux.intel.com>2010-05-17 05:08:28 -0400
committerAvi Kivity <avi@redhat.com>2010-08-01 03:35:49 -0400
commit98918833a3e21ffc5619535955e7a003cb788163 (patch)
tree7b073bb8888927391b11810e104d2cd4a694f86e /arch/x86/include/asm/kvm_host.h
parent7cf30855e02be7a207ffebb8b9350986f2ba83e9 (diff)
KVM: x86: Use FPU API
Convert KVM to use generic FPU API. Signed-off-by: Sheng Yang <sheng@linux.intel.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r--arch/x86/include/asm/kvm_host.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index d93601c52902..d08bb4a202de 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -301,7 +301,7 @@ struct kvm_vcpu_arch {
301 unsigned long mmu_seq; 301 unsigned long mmu_seq;
302 } update_pte; 302 } update_pte;
303 303
304 struct i387_fxsave_struct guest_fx_image; 304 struct fpu guest_fpu;
305 305
306 gva_t mmio_fault_cr2; 306 gva_t mmio_fault_cr2;
307 struct kvm_pio_request pio; 307 struct kvm_pio_request pio;
@@ -708,21 +708,6 @@ static inline unsigned long read_msr(unsigned long msr)
708} 708}
709#endif 709#endif
710 710
711static inline void kvm_fx_save(struct i387_fxsave_struct *image)
712{
713 asm("fxsave (%0)":: "r" (image));
714}
715
716static inline void kvm_fx_restore(struct i387_fxsave_struct *image)
717{
718 asm("fxrstor (%0)":: "r" (image));
719}
720
721static inline void kvm_fx_finit(void)
722{
723 asm("finit");
724}
725
726static inline u32 get_rdx_init_val(void) 711static inline u32 get_rdx_init_val(void)
727{ 712{
728 return 0x600; /* P6 family */ 713 return 0x600; /* P6 family */