aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/vmx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/kvm/vmx.c')
-rw-r--r--drivers/kvm/vmx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index eeecadf5da46..f4618b9edf9c 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -441,8 +441,10 @@ static void vmx_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
441 u64 phys_addr = __pa(vmx->vmcs); 441 u64 phys_addr = __pa(vmx->vmcs);
442 u64 tsc_this, delta; 442 u64 tsc_this, delta;
443 443
444 if (vcpu->cpu != cpu) 444 if (vcpu->cpu != cpu) {
445 vcpu_clear(vmx); 445 vcpu_clear(vmx);
446 kvm_migrate_apic_timer(vcpu);
447 }
446 448
447 if (per_cpu(current_vmcs, cpu) != vmx->vmcs) { 449 if (per_cpu(current_vmcs, cpu) != vmx->vmcs) {
448 u8 error; 450 u8 error;