]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/apic: KVM: Move lapic get/set helpers to common code
authorNeeraj Upadhyay <Neeraj.Upadhyay@amd.com>
Wed, 9 Jul 2025 03:32:18 +0000 (09:02 +0530)
committerSean Christopherson <seanjc@google.com>
Thu, 10 Jul 2025 16:44:42 +0000 (09:44 -0700)
commit3d3a9083da1e7f5f933455411c1e96b37ae37772
treea2b2e4d6b6762af71a5b94a97cd967499185c4ba
parent39e81633f65eeb474215c95991c19f31b5a19a11
x86/apic: KVM: Move lapic get/set helpers to common code

Move the apic_get_reg(), apic_set_reg(), apic_get_reg64() and
apic_set_reg64() helper functions to apic.h in order to reuse them in the
Secure AVIC guest APIC driver in later patches to read/write registers
from/to 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-12-Neeraj.Upadhyay@amd.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/apic.h
arch/x86/kvm/lapic.c
arch/x86/kvm/lapic.h