On Wed, Mar 24, 2010 at 09:10:54AM +0800, 王箫 wrote: > Thanks for pointing that, but is it possible that explicitly check the > pending timer with kvm_cpu_has_pending_timer() in vcpu_enter_guest()? There > seems some function duplication between KVM_REQ_PENDING_TIMER and > ktimer->pending. Right. KVM_REQ_PENDING_TIMER is per vcpu, and its one bit, while there might be multiple ktimers per vcpu (its a shortcut between hrtimers and guest entry, bypassing irq injection). Yes, there is some duplication. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html