aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r--arch/x86/kvm/svm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index ec205847be6a..c480d7f64a60 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -2960,6 +2960,10 @@ static void svm_vcpu_run(struct kvm_vcpu *vcpu)
2960 u16 gs_selector; 2960 u16 gs_selector;
2961 u16 ldt_selector; 2961 u16 ldt_selector;
2962 2962
2963 svm->vmcb->save.rax = vcpu->arch.regs[VCPU_REGS_RAX];
2964 svm->vmcb->save.rsp = vcpu->arch.regs[VCPU_REGS_RSP];
2965 svm->vmcb->save.rip = vcpu->arch.regs[VCPU_REGS_RIP];
2966
2963 /* 2967 /*
2964 * A vmexit emulation is required before the vcpu can be executed 2968 * A vmexit emulation is required before the vcpu can be executed
2965 * again. 2969 * again.
@@ -2967,10 +2971,6 @@ static void svm_vcpu_run(struct kvm_vcpu *vcpu)
2967 if (unlikely(svm->nested.exit_required)) 2971 if (unlikely(svm->nested.exit_required))
2968 return; 2972 return;
2969 2973
2970 svm->vmcb->save.rax = vcpu->arch.regs[VCPU_REGS_RAX];
2971 svm->vmcb->save.rsp = vcpu->arch.regs[VCPU_REGS_RSP];
2972 svm->vmcb->save.rip = vcpu->arch.regs[VCPU_REGS_RIP];
2973
2974 pre_svm_run(svm); 2974 pre_svm_run(svm);
2975 2975
2976 sync_lapic_to_cr8(vcpu); 2976 sync_lapic_to_cr8(vcpu);