From: Eddie Dong Date: Mon, 3 Sep 2007 13:15:12 +0000 (+0300) Subject: KVM: Migrate lapic hrtimer when vcpu moves to another cpu X-Git-Tag: v2.6.24-rc1~1365^2~28 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3d7f85f471f889e4477863a7ca42828ae74e77d;p=pandora-kernel.git KVM: Migrate lapic hrtimer when vcpu moves to another cpu This reduces overhead by accessing cachelines from the wrong node, as well as simplifying locking. [Qing: fix for inactive or expired one-shot timer] Signed-off-by: Yaozu (Eddie) Dong Signed-off-by: Qing He Signed-off-by: Avi Kivity --- diff --git a/drivers/kvm/irq.h b/drivers/kvm/irq.h index 87baf7e69ea2..f324cfb40084 100644 --- a/drivers/kvm/irq.h +++ b/drivers/kvm/irq.h @@ -158,5 +158,6 @@ void kvm_apic_timer_intr_post(struct kvm_vcpu *vcpu, int vec); void kvm_timer_intr_post(struct kvm_vcpu *vcpu, int vec); void kvm_inject_pending_timer_irqs(struct kvm_vcpu *vcpu); void kvm_inject_apic_timer_irqs(struct kvm_vcpu *vcpu); +void kvm_migrate_apic_timer(struct kvm_vcpu *vcpu); #endif Reading git-diff-tree failed