Skip to contentSkip to conversation

call kvm_arch_vcpu_reset() instead of a callback

PATCH Applied Gleb Natapov 2 participants 2 messages Oct 7, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 call kvm_arch_vcpu_reset() instead of a callback

Call kvm_arch_vcpu_reset() instead of directly using arch callback. The function does additional things.

arch/x86/kvm/x86.c +1 -1
index 675fcc1..a0ae93b 100644
@@ -3264,7 +3264,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;

--
Gleb.

Applied
#1 lore raw
Quoted 3 lines · Gleb Natapov

Call kvm_arch_vcpu_reset() instead of directly using arch callback. The function does additional things.

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function