KVM: x86: Change lapic regs base address to void pointer
authorNeeraj Upadhyay <Neeraj.Upadhyay@amd.com>
Wed, 9 Jul 2025 03:32:12 +0000 (09:02 +0530)
committerSean Christopherson <seanjc@google.com>
Thu, 10 Jul 2025 16:44:38 +0000 (09:44 -0700)
commite2fa7905b293750ee75573eeee3e54575ded8217
treec046e0ed77252a476abe80e4b9e4c67e72090a18
parent9cbb5fd156d777cc09f57af20505e5e17ad6263b
KVM: x86: Change lapic regs base address to void pointer

Change APIC base address from "char *" to "void *" in KVM
lapic's set/get helper functions. Pointer arithmetic for "void *"
and "char *" operate identically. With "void *" there is less
of a chance of doing the wrong thing, e.g. neglecting to cast and
reading a byte instead of the desired APIC register size.

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