aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index f0493e7dcf0c..8f94a0b89dff 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -2518,13 +2518,16 @@ again:
2518 if (unlikely(r)) 2518 if (unlikely(r))
2519 goto out; 2519 goto out;
2520 2520
2521 if (vcpu->requests) 2521 if (vcpu->requests) {
2522 if (test_and_clear_bit(KVM_REQ_MIGRATE_TIMER, &vcpu->requests))
2523 __kvm_migrate_apic_timer(vcpu);
2522 if (test_and_clear_bit(KVM_REQ_REPORT_TPR_ACCESS, 2524 if (test_and_clear_bit(KVM_REQ_REPORT_TPR_ACCESS,
2523 &vcpu->requests)) { 2525 &vcpu->requests)) {
2524 kvm_run->exit_reason = KVM_EXIT_TPR_ACCESS; 2526 kvm_run->exit_reason = KVM_EXIT_TPR_ACCESS;
2525 r = 0; 2527 r = 0;
2526 goto out; 2528 goto out;
2527 } 2529 }
2530 }
2528 2531
2529 kvm_inject_pending_timer_irqs(vcpu); 2532 kvm_inject_pending_timer_irqs(vcpu);
2530 2533