KVM: x86/mmu: Move KVM-only page-track declarations to internal header
authorSean Christopherson <seanjc@google.com>
Sat, 29 Jul 2023 01:35:27 +0000 (18:35 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 31 Aug 2023 18:08:13 +0000 (14:08 -0400)
commit58ea7cf700cae441fd41d17e6f8092a4f9e2e32b
treed1453547cb166b3f8acf4e406f0aceaf287a7cd0
parentd104d5bbbc2de62fafe0e391dbc7b1e99a58722e
KVM: x86/mmu: Move KVM-only page-track declarations to internal header

Bury the declaration of the page-track helpers that are intended only for
internal KVM use in a "private" header.  In addition to guarding against
unwanted usage of the internal-only helpers, dropping their definitions
avoids exposing other structures that should be KVM-internal, e.g. for
memslots.  This is a baby step toward making kvm_host.h a KVM-internal
header in the very distant future.

Tested-by: Yongwei Ma <yongwei.ma@intel.com>
Link: https://lore.kernel.org/r/20230729013535.1070024-22-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_page_track.h
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/page_track.c
arch/x86/kvm/mmu/page_track.h [new file with mode: 0644]
arch/x86/kvm/x86.c