From: Marcelo Tosatti Date: Tue, 23 Mar 2010 17:15:53 +0000 (-0300) Subject: KVM: x86: document KVM_REQ_PENDING_TIMER usage X-Git-Tag: upstream/snapshot3+hdmi~14531^2~141 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=041b1359a29b9301bc8baed6efcdbad29f80f6af;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git KVM: x86: document KVM_REQ_PENDING_TIMER usage Document that KVM_REQ_PENDING_TIMER is implicitly used during guest entry. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- diff --git a/arch/x86/kvm/timer.c b/arch/x86/kvm/timer.c index eea4043..4ddadb1 100644 --- a/arch/x86/kvm/timer.c +++ b/arch/x86/kvm/timer.c @@ -12,7 +12,8 @@ static int __kvm_timer_fn(struct kvm_vcpu *vcpu, struct kvm_timer *ktimer) /* * There is a race window between reading and incrementing, but we do * not care about potentially loosing timer events in the !reinject - * case anyway. + * case anyway. Note: KVM_REQ_PENDING_TIMER is implicitly checked + * in vcpu_enter_guest. */ if (ktimer->reinject || !atomic_read(&ktimer->pending)) { atomic_inc(&ktimer->pending);