KVM: X86: TSCDEADLINE MSR emulation fastpath
authorWanpeng Li <wanpengli@tencent.com>
Tue, 28 Apr 2020 06:23:28 +0000 (14:23 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 15 May 2020 16:26:21 +0000 (12:26 -0400)
commitae95f566b3d22ade75c67827f1171594dacc9a03
tree844a39327fc4c0862899716f7c59cd01e693878f
parent199a8b84c455cfeb81bc060c6824dea473e54dc3
KVM: X86: TSCDEADLINE MSR emulation fastpath

This patch implements a fast path for emulation of writes to the TSCDEADLINE
MSR.  Besides shortcutting various housekeeping tasks in the vCPU loop,
the fast path can also deliver the timer interrupt directly without going
through KVM_REQ_PENDING_TIMER because it runs in vCPU context.

Tested-by: Haiwei Li <lihaiwei@tencent.com>
Cc: Haiwei Li <lihaiwei@tencent.com>
Signed-off-by: Wanpeng Li <wanpengli@tencent.com>
Message-Id: <1588055009-12677-7-git-send-email-wanpengli@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c
arch/x86/kvm/x86.c