Skip to content

Commit bdaccfe

Browse files
neerajupadhyasean-jc
authored andcommitted
KVM: x86: Rename find_highest_vector()
In preparation for moving kvm-internal find_highest_vector() to apic.h for use in Secure AVIC APIC driver, rename find_highest_vector() to apic_find_highest_vector() as part of the APIC API. No functional change intended. Signed-off-by: Neeraj Upadhyay <Neeraj.Upadhyay@amd.com> Acked-by: Sean Christopherson <seanjc@google.com> Link: https://lore.kernel.org/r/20250709033242.267892-7-Neeraj.Upadhyay@amd.com Signed-off-by: Sean Christopherson <seanjc@google.com>
1 parent e2fa790 commit bdaccfe

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

arch/x86/kvm/lapic.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ static const unsigned int apic_lvt_mask[KVM_APIC_MAX_NR_LVT_ENTRIES] = {
616616
[LVT_CMCI] = LVT_MASK | APIC_MODE_MASK
617617
};
618618

619-
static int find_highest_vector(void *bitmap)
619+
static int apic_find_highest_vector(void *bitmap)
620620
{
621621
int vec;
622622
u32 *reg;
@@ -695,7 +695,7 @@ EXPORT_SYMBOL_GPL(kvm_apic_update_irr);
695695

696696
static inline int apic_search_irr(struct kvm_lapic *apic)
697697
{
698-
return find_highest_vector(apic->regs + APIC_IRR);
698+
return apic_find_highest_vector(apic->regs + APIC_IRR);
699699
}
700700

701701
static inline int apic_find_highest_irr(struct kvm_lapic *apic)
@@ -776,7 +776,7 @@ static inline int apic_find_highest_isr(struct kvm_lapic *apic)
776776
if (likely(apic->highest_isr_cache != -1))
777777
return apic->highest_isr_cache;
778778

779-
result = find_highest_vector(apic->regs + APIC_ISR);
779+
result = apic_find_highest_vector(apic->regs + APIC_ISR);
780780
ASSERT(result == -1 || result >= 16);
781781

782782
return result;

0 commit comments

Comments
 (0)