]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: LAPIC: Advancing the timer expiration on guest initiated write
authorWanpeng Li <wanpengli@tencent.com>
Thu, 4 Mar 2021 00:35:18 +0000 (08:35 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 12 Mar 2021 18:18:52 +0000 (13:18 -0500)
commit8fe9483a7336271f7699cfc96cc9e2295f0c28c4
tree769238079599a5f3d185b68494c4379c9311c3c2
parent68e2160daf10aef999ec3dc946ee5613ebd6d804
KVM: LAPIC: Advancing the timer expiration on guest initiated write

Advancing the timer expiration should only be necessary on guest initiated
writes. When we cancel the timer and clear .pending during state restore,
clear expired_tscdeadline as well.

Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Wanpeng Li <wanpengli@tencent.com>
Message-Id: <1614818118-965-1-git-send-email-wanpengli@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c