]> git.baikalelectronics.ru Git - kernel.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>
Tue, 1 Mar 2022 13:50:48 +0000 (08:50 -0500)
commit7ff3ef74876835652e8b007bb20fadbf5085b164
tree8e945778f7d40a61fe2ae85730df9755fe83a136
parent29c98916ca7e1a160dfd500989fc5f602255fa8e
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