summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.c
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2008-05-27 12:10:20 -0300
committerAvi Kivity <avi@qumranet.com>2008-06-06 21:25:51 +0300
commit2f5997140f22f68f6390c49941150d3fa8a95cb7 (patch)
tree790370cfb5ea5cd16a892c3a8b2bb75a2f30b489 /arch/x86/kvm/svm.c
parent9dcb40e1aa5bfe7d6ffc729f3c2b6c8f1392d2d3 (diff)
downloadop-kernel-dev-2f5997140f22f68f6390c49941150d3fa8a95cb7.zip
op-kernel-dev-2f5997140f22f68f6390c49941150d3fa8a95cb7.tar.gz
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/svm.c')
-rw-r--r--arch/x86/kvm/svm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index ab22615..6b0d5fa 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -688,7 +688,7 @@ static void svm_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
delta = vcpu->arch.host_tsc - tsc_this;
svm->vmcb->control.tsc_offset += delta;
vcpu->cpu = cpu;
- kvm_migrate_apic_timer(vcpu);
+ kvm_migrate_timers(vcpu);
}
for (i = 0; i < NR_HOST_SAVE_USER_MSRS; i++)
OpenPOWER on IntegriCloud