]> Gentwo Git Trees - linux/.git/commit
KVM: x86: Move kvm_intr_is_single_vcpu() to lapic.c
authorSean Christopherson <seanjc@google.com>
Fri, 19 Sep 2025 00:33:01 +0000 (17:33 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 30 Sep 2025 17:40:02 +0000 (13:40 -0400)
commitd273b52b6fad95b6b00b93250151c323c19de50d
treedbe53d838dc14308346bb8fb9d9640f290a69172
parent20c48920583675e67b3824f147726e0fbda735ce
KVM: x86: Move kvm_intr_is_single_vcpu() to lapic.c

Move kvm_intr_is_single_vcpu() to lapic.c, drop its export, and make its
"fast" helper local to lapic.c.  kvm_intr_is_single_vcpu() is only usable
if the local APIC is in-kernel, i.e. it most definitely belongs in the
local APIC code.

No functional change intended.

Fixes: cf04ec393ed0 ("KVM: x86: Dedup AVIC vs. PI code for identifying target vCPU")
Link: https://lore.kernel.org/r/20250919003303.1355064-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/irq.c
arch/x86/kvm/lapic.c
arch/x86/kvm/lapic.h