aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/kvm')
-rw-r--r--drivers/kvm/svm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c
index 729f1cd93606..3910358db79d 100644
--- a/drivers/kvm/svm.c
+++ b/drivers/kvm/svm.c
@@ -561,6 +561,12 @@ static void svm_vcpu_reset(struct kvm_vcpu *vcpu)
561 struct vcpu_svm *svm = to_svm(vcpu); 561 struct vcpu_svm *svm = to_svm(vcpu);
562 562
563 init_vmcb(svm->vmcb); 563 init_vmcb(svm->vmcb);
564
565 if (vcpu->vcpu_id != 0) {
566 svm->vmcb->save.rip = 0;
567 svm->vmcb->save.cs.base = svm->vcpu.sipi_vector << 12;
568 svm->vmcb->save.cs.selector = svm->vcpu.sipi_vector << 8;
569 }
564} 570}
565 571
566static struct kvm_vcpu *svm_create_vcpu(struct kvm *kvm, unsigned int id) 572static struct kvm_vcpu *svm_create_vcpu(struct kvm *kvm, unsigned int id)