]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: x86: Drop ASSERT()s on APIC/vCPU being non-NULL
authorSean Christopherson <seanjc@google.com>
Sat, 6 Dec 2025 00:43:03 +0000 (16:43 -0800)
committerSean Christopherson <seanjc@google.com>
Mon, 12 Jan 2026 17:31:37 +0000 (09:31 -0800)
commita4978324e4bd80427313e0baa16e53709e14d878
tree00d15d5c8ef74a14b91cbe92a41628ddbf8b4377
parentc9d7134679ebf038c3d1d0b324e378dfc464d198
KVM: x86: Drop ASSERT()s on APIC/vCPU being non-NULL

Remove ASSERT()s on vCPU and APIC structures being non-NULL in the local
APIC code as the DEBUG=1 path of ASSERT() ends with BUG(), i.e. isn't
meaningfully better for debugging than a NULL pointer dereference.

For all intents and purposes, no functional change intended.

Link: https://patch.msgid.link/20251206004311.479939-2-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/lapic.c