]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: WARN if APIC HW/SW disable static keys are non-zero on unload
authorSean Christopherson <seanjc@google.com>
Wed, 13 Oct 2021 00:35:54 +0000 (17:35 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 18 Oct 2021 18:07:18 +0000 (14:07 -0400)
commit0949a681544b60bb85dc0924753710bf7f2db4db
tree5643cb6b724114818124b9a03387d966db389b7d
parent9675c971ff10c2f22e0ce73b4c3e416e95258ffe
KVM: x86: WARN if APIC HW/SW disable static keys are non-zero on unload

WARN if the static keys used to track if any vCPU has disabled its APIC
are left elevated at module exit.  Unlike the underflow case, nothing in
the static key infrastructure will complain if a key is left elevated,
and because an elevated key only affects performance, nothing in KVM will
fail if either key is improperly incremented.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211013003554.47705-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c