KVM: x86: fire timer when it is migrated and expired, and in oneshot mode
authorLi RongQing <lirongqing@baidu.com>
Fri, 6 Jan 2023 04:06:25 +0000 (12:06 +0800)
committerSean Christopherson <seanjc@google.com>
Tue, 24 Jan 2023 18:04:37 +0000 (10:04 -0800)
commit8e6ed96cdd5001c55fccc80a17f651741c1ca7d2
tree5152f6820ec98923def4ed0466b17615ab7668a6
parent02efd818a6c095bcbf422f47fccc4ef27d53f344
KVM: x86: fire timer when it is migrated and expired, and in oneshot mode

when the vCPU was migrated, if its timer is expired, KVM _should_ fire
the timer ASAP, zeroing the deadline here will cause the timer to
immediately fire on the destination

Cc: Sean Christopherson <seanjc@google.com>
Cc: Peter Shier <pshier@google.com>
Cc: Jim Mattson <jmattson@google.com>
Cc: Wanpeng Li <wanpengli@tencent.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Link: https://lore.kernel.org/r/20230106040625.8404-1-lirongqing@baidu.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/lapic.c