x86/apic: KVM: Move lapic set/clear_vector() helpers to common code
authorNeeraj Upadhyay <Neeraj.Upadhyay@amd.com>
Wed, 9 Jul 2025 03:32:19 +0000 (09:02 +0530)
committerSean Christopherson <seanjc@google.com>
Thu, 10 Jul 2025 16:44:43 +0000 (09:44 -0700)
commitfe954bcd577e703acdef597903079c991740f6bf
tree36d22c75b5ce1384b5d9a716ab7d3a3ad40c3c69
parent3d3a9083da1e7f5f933455411c1e96b37ae37772
x86/apic: KVM: Move lapic set/clear_vector() helpers to common code

Move apic_clear_vector() and apic_set_vector() helper functions to
apic.h in order to reuse them in the Secure AVIC guest APIC driver
in later patches to atomically set/clear vectors in the APIC backing
page.

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-13-Neeraj.Upadhyay@amd.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/apic.h
arch/x86/kvm/lapic.h