x86/apic: KVM: Move apic_find_highest_vector() to a common header
authorNeeraj Upadhyay <Neeraj.Upadhyay@amd.com>
Wed, 9 Jul 2025 03:32:17 +0000 (09:02 +0530)
committerSean Christopherson <seanjc@google.com>
Thu, 10 Jul 2025 16:44:41 +0000 (09:44 -0700)
commit39e81633f65eeb474215c95991c19f31b5a19a11
tree679212669233fe0798a6c8398ceb6c1084199070
parentb5f8980f29ce20357c6ee364a83c55f2bdf2dfde
x86/apic: KVM: Move apic_find_highest_vector() to a common header

In preparation for using apic_find_highest_vector() in Secure AVIC
guest APIC driver, move it and associated macros to apic.h.

No functional change intended.

Acked-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Neeraj Upadhyay <Neeraj.Upadhyay@amd.com>
Link: https://lore.kernel.org/r/20250709033242.267892-11-Neeraj.Upadhyay@amd.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/apic.h
arch/x86/kvm/lapic.c