diff options
author | Eddie Dong <eddie.dong@intel.com> | 2007-09-03 09:15:12 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-10-13 04:18:26 -0400 |
commit | a3d7f85f471f889e4477863a7ca42828ae74e77d (patch) | |
tree | f75148a940f7e297da91f6a14ab573291ceb050f /drivers/kvm/svm.c | |
parent | 1b9778dae71dc64d3678d766c0f1fbed79c80f9f (diff) |
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 <Eddie.Dong@intel.com>
Signed-off-by: Qing He <qing.he@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/svm.c')
-rw-r--r-- | drivers/kvm/svm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c index 00119ec41669..3de9ec35ebf9 100644 --- a/drivers/kvm/svm.c +++ b/drivers/kvm/svm.c | |||
@@ -633,6 +633,7 @@ static void svm_vcpu_load(struct kvm_vcpu *vcpu, int cpu) | |||
633 | delta = vcpu->host_tsc - tsc_this; | 633 | delta = vcpu->host_tsc - tsc_this; |
634 | svm->vmcb->control.tsc_offset += delta; | 634 | svm->vmcb->control.tsc_offset += delta; |
635 | vcpu->cpu = cpu; | 635 | vcpu->cpu = cpu; |
636 | kvm_migrate_apic_timer(vcpu); | ||
636 | } | 637 | } |
637 | 638 | ||
638 | for (i = 0; i < NR_HOST_SAVE_USER_MSRS; i++) | 639 | for (i = 0; i < NR_HOST_SAVE_USER_MSRS; i++) |