diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2008-05-27 17:10:20 +0200 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-06-06 20:25:51 +0200 |
commit | 2f5997140f22f68f6390c49941150d3fa8a95cb7 (patch) | |
tree | 790370cfb5ea5cd16a892c3a8b2bb75a2f30b489 /arch/x86/kvm/irq.h | |
parent | KVM: ppc: Report bad GFNs (diff) | |
download | linux-2f5997140f22f68f6390c49941150d3fa8a95cb7.tar.xz linux-2f5997140f22f68f6390c49941150d3fa8a95cb7.zip |
KVM: migrate PIT timer
Migrate the PIT timer to the physical CPU which vcpu0 is scheduled on,
similarly to what is done for the LAPIC timers, otherwise PIT interrupts
will be delayed until an unrelated event causes an exit.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/x86/kvm/irq.h')
-rw-r--r-- | arch/x86/kvm/irq.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/irq.h b/arch/x86/kvm/irq.h index 1802134b836f..2a15be2275c0 100644 --- a/arch/x86/kvm/irq.h +++ b/arch/x86/kvm/irq.h @@ -84,6 +84,8 @@ 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); +void __kvm_migrate_pit_timer(struct kvm_vcpu *vcpu); +void __kvm_migrate_timers(struct kvm_vcpu *vcpu); int pit_has_pending_timer(struct kvm_vcpu *vcpu); int apic_has_pending_timer(struct kvm_vcpu *vcpu); |