aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/svm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/kvm/svm.c')
-rw-r--r--drivers/kvm/svm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c
index 035c8e6898f1..953c111544e1 100644
--- a/drivers/kvm/svm.c
+++ b/drivers/kvm/svm.c
@@ -557,7 +557,7 @@ static void init_vmcb(struct vmcb *vmcb)
557 /* rdx = ?? */ 557 /* rdx = ?? */
558} 558}
559 559
560static void svm_vcpu_reset(struct kvm_vcpu *vcpu) 560static int svm_vcpu_reset(struct kvm_vcpu *vcpu)
561{ 561{
562 struct vcpu_svm *svm = to_svm(vcpu); 562 struct vcpu_svm *svm = to_svm(vcpu);
563 563
@@ -568,6 +568,8 @@ static void svm_vcpu_reset(struct kvm_vcpu *vcpu)
568 svm->vmcb->save.cs.base = svm->vcpu.sipi_vector << 12; 568 svm->vmcb->save.cs.base = svm->vcpu.sipi_vector << 12;
569 svm->vmcb->save.cs.selector = svm->vcpu.sipi_vector << 8; 569 svm->vmcb->save.cs.selector = svm->vcpu.sipi_vector << 8;
570 } 570 }
571
572 return 0;
571} 573}
572 574
573static struct kvm_vcpu *svm_create_vcpu(struct kvm *kvm, unsigned int id) 575static struct kvm_vcpu *svm_create_vcpu(struct kvm *kvm, unsigned int id)