aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2008-10-07 09:42:33 -0400
committerAvi Kivity <avi@redhat.com>2008-12-31 09:51:43 -0500
commit5f179287fa02723215eecf681d812b303c243973 (patch)
treeffd972817ce37a1466f8da01d17d22df83429a5d /arch/x86/kvm/x86.c
parent3b86cd9967242f3f3d775ee015fb814a349ed5e6 (diff)
KVM: call kvm_arch_vcpu_reset() instead of the kvm_x86_ops callback
Call kvm_arch_vcpu_reset() instead of directly using arch callback. The function does additional things. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 07971451b947..a2c4b5594555 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -3010,7 +3010,7 @@ static int __vcpu_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
3010 pr_debug("vcpu %d received sipi with vector # %x\n", 3010 pr_debug("vcpu %d received sipi with vector # %x\n",
3011 vcpu->vcpu_id, vcpu->arch.sipi_vector); 3011 vcpu->vcpu_id, vcpu->arch.sipi_vector);
3012 kvm_lapic_reset(vcpu); 3012 kvm_lapic_reset(vcpu);
3013 r = kvm_x86_ops->vcpu_reset(vcpu); 3013 r = kvm_arch_vcpu_reset(vcpu);
3014 if (r) 3014 if (r)
3015 return r; 3015 return r;
3016 vcpu->arch.mp_state = KVM_MP_STATE_RUNNABLE; 3016 vcpu->arch.mp_state = KVM_MP_STATE_RUNNABLE;