KVM: x86: Uninline and export hv_track_root_tdp()
authorSean Christopherson <seanjc@google.com>
Fri, 28 Jan 2022 00:51:55 +0000 (00:51 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 18:47:19 +0000 (13:47 -0500)
commit3d4421f8f26cbba0191cc0461399ec90284011a7
tree5caa159f7687c13bf1435a599e986d4c5bba61d3
parent0bcd556e15f97f5b6636f146acbf22663ab38ccf
KVM: x86: Uninline and export hv_track_root_tdp()

Uninline and export Hyper-V's hv_track_root_tdp(), which is (somewhat
indirectly) the last remaining reference to kvm_x86_ops from vendor
modules, i.e. will allow unexporting kvm_x86_ops.  Reloading the TDP PGD
isn't the fastest of paths, hv_track_root_tdp() isn't exactly tiny, and
disallowing vendor code from accessing kvm_x86_ops provides nice-to-have
encapsulation of common x86 code (and of Hyper-V code for that matter).

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220128005208.4008533-10-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/kvm_onhyperv.c
arch/x86/kvm/kvm_onhyperv.h