]> 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)
commita65a3f6f892e3542de0d708ce63024dc8741b04e
tree8e945778f7d40a61fe2ae85730df9755fe83a136
parentf9f86023e8d19d9585eeccfb652183b8b902b16f
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