aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/booke.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kvm/booke.c')
-rw-r--r--arch/powerpc/kvm/booke.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c
index 0033465ecc3f..a983ccaf3cce 100644
--- a/arch/powerpc/kvm/booke.c
+++ b/arch/powerpc/kvm/booke.c
@@ -682,10 +682,6 @@ int kvmppc_vcpu_run(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu)
682{ 682{
683 int ret, s; 683 int ret, s;
684 struct thread_struct thread; 684 struct thread_struct thread;
685#ifdef CONFIG_PPC_FPU
686 struct thread_fp_state fp;
687 int fpexc_mode;
688#endif
689 685
690 if (!vcpu->arch.sane) { 686 if (!vcpu->arch.sane) {
691 kvm_run->exit_reason = KVM_EXIT_INTERNAL_ERROR; 687 kvm_run->exit_reason = KVM_EXIT_INTERNAL_ERROR;
@@ -703,11 +699,6 @@ int kvmppc_vcpu_run(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu)
703#ifdef CONFIG_PPC_FPU 699#ifdef CONFIG_PPC_FPU
704 /* Save userspace FPU state in stack */ 700 /* Save userspace FPU state in stack */
705 enable_kernel_fp(); 701 enable_kernel_fp();
706 fp = current->thread.fp_state;
707 fpexc_mode = current->thread.fpexc_mode;
708
709 /* Restore guest FPU state to thread */
710 current->thread.fp_state = vcpu->arch.fp;
711 702
712 /* 703 /*
713 * Since we can't trap on MSR_FP in GS-mode, we consider the guest 704 * Since we can't trap on MSR_FP in GS-mode, we consider the guest
@@ -741,13 +732,6 @@ int kvmppc_vcpu_run(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu)
741 kvmppc_save_guest_fp(vcpu); 732 kvmppc_save_guest_fp(vcpu);
742 733
743 vcpu->fpu_active = 0; 734 vcpu->fpu_active = 0;
744
745 /* Save guest FPU state from thread */
746 vcpu->arch.fp = current->thread.fp_state;
747
748 /* Restore userspace FPU state from stack */
749 current->thread.fp_state = fp;
750 current->thread.fpexc_mode = fpexc_mode;
751#endif 735#endif
752 736
753out: 737out: