]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
KVM: call kvm_arch_vcpu_reset() instead of the kvm_x86_ops callback
authorGleb Natapov <gleb@redhat.com>
Tue, 7 Oct 2008 13:42:33 +0000 (15:42 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:51:43 +0000 (16:51 +0200)
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>
arch/x86/kvm/x86.c

index 07971451b947310192d63b355bcce67a1e2dc207..a2c4b55945553cf0c70840da5a56074dca323bd9 100644 (file)
@@ -3010,7 +3010,7 @@ static int __vcpu_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
                pr_debug("vcpu %d received sipi with vector # %x\n",
                         vcpu->vcpu_id, vcpu->arch.sipi_vector);
                kvm_lapic_reset(vcpu);
-               r = kvm_x86_ops->vcpu_reset(vcpu);
+               r = kvm_arch_vcpu_reset(vcpu);
                if (r)
                        return r;
                vcpu->arch.mp_state = KVM_MP_STATE_RUNNABLE;