KVM: x86: Make kvm_lapic_set_reg() a "private" xAPIC helper
authorSean Christopherson <seanjc@google.com>
Fri, 4 Feb 2022 21:42:04 +0000 (21:42 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 1 Mar 2022 13:50:48 +0000 (08:50 -0500)
commitb9964ee36bdf2ffcbe9084510874c2ff97b3cb46
tree8e945778f7d40a61fe2ae85730df9755fe83a136
parenta57a31684d7be2d4427292db21ef622ea9591f5b
KVM: x86: Make kvm_lapic_set_reg() a "private" xAPIC helper

Hide the lapic's "raw" write helper inside lapic.c to force non-APIC code
to go through proper helpers when modification the vAPIC state.  Keep the
read helper visible to outsiders for now, refactoring KVM to hide it too
is possible, it will just take more work to do so.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220204214205.3306634-11-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c
arch/x86/kvm/lapic.h
arch/x86/kvm/trace.h
arch/x86/kvm/x86.c