mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 19:23:57 +08:00
KVM: SVM: Fix SMP with kernel apic
AP processor needs to reset to the SIPI vector, not normal INIT. Signed-off-by: Avi Kivity <avi@qumranet.com>
This commit is contained in:
parent
1e35d3c4a7
commit
70433389cc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user