OSDN Git Service

KVM: LAPIC: Prevent setting the tscdeadline timer if the lapic is hw disabled
authorWanpeng Li <wanpengli@tencent.com>
Fri, 31 Jul 2020 03:12:19 +0000 (11:12 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 31 Jul 2020 07:20:15 +0000 (03:20 -0400)
commitd2286ba7d574ba3103a421a2f9ec17cb5b0d87a1
treed32d8f9ff743ae542cbb7d527b9115bd2cea99af
parentd741dcae5562259841bd2211a0bd7e6c0f909f1e
KVM: LAPIC: Prevent setting the tscdeadline timer if the lapic is hw disabled

Prevent setting the tscdeadline timer if the lapic is hw disabled.

Fixes: bce87cce88 (KVM: x86: consolidate different ways to test for in-kernel LAPIC)
Cc: <stable@vger.kernel.org>
Signed-off-by: Wanpeng Li <wanpengli@tencent.com>
Message-Id: <1596165141-28874-1-git-send-email-wanpengli@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c