Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73559
b: refs/heads/master
c: 7043338
h: refs/heads/master
i:
  73557: 78433d3
  73555: 6af4abb
  73551: ea7d4ef
v: v3
  • Loading branch information
Avi Kivity committed Nov 8, 2007
1 parent 0df6a99 commit 2a0ea29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1e35d3c4a7a9682256c887a1388cf3faefdf53df
refs/heads/master: 70433389ccfe2719ef5cd539d04172260294f0f5
6 changes: 6 additions & 0 deletions trunk/drivers/kvm/svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,12 @@ static void svm_vcpu_reset(struct kvm_vcpu *vcpu)
struct vcpu_svm *svm = to_svm(vcpu);

init_vmcb(svm->vmcb);

if (vcpu->vcpu_id != 0) {
svm->vmcb->save.rip = 0;
svm->vmcb->save.cs.base = svm->vcpu.sipi_vector << 12;
svm->vmcb->save.cs.selector = svm->vcpu.sipi_vector << 8;
}
}

static struct kvm_vcpu *svm_create_vcpu(struct kvm *kvm, unsigned int id)
Expand Down

0 comments on commit 2a0ea29

Please sign in to comment.