]> www.infradead.org Git - users/dwmw2/linux.git/commit
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>
Fri, 25 Feb 2022 13:20:23 +0000 (08:20 -0500)
commit02e8dd6d5ee6326036f14263da69ec64e910b205
tree9cef4c3b4d4e9fd80c99a2c0c7e20ac10213951c
parent7a641ca0c219e4bbe102f2634dbc7e06072fcd3c
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