]> err.no Git - linux-2.6/commit
KVM: migrate PIT timer
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 27 May 2008 15:10:20 +0000 (12:10 -0300)
committerAvi Kivity <avi@qumranet.com>
Fri, 6 Jun 2008 18:25:51 +0000 (21:25 +0300)
commit2f5997140f22f68f6390c49941150d3fa8a95cb7
tree790370cfb5ea5cd16a892c3a8b2bb75a2f30b489
parent9dcb40e1aa5bfe7d6ffc729f3c2b6c8f1392d2d3
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>
arch/x86/kvm/i8254.c
arch/x86/kvm/irq.c
arch/x86/kvm/irq.h
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c
include/linux/kvm_host.h