KVM: x86/mmu: Drop @slot param from exported/external page-track APIs
authorSean Christopherson <seanjc@google.com>
Sat, 29 Jul 2023 01:35:33 +0000 (18:35 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 31 Aug 2023 18:08:18 +0000 (14:08 -0400)
commit96316a06700fc93140e7492c9e994045680f7272
tree32985691a43156c953fa6a48dc954d974a2adb91
parent427c76aed29ec12a57f11546a5036df3cc52855e
KVM: x86/mmu: Drop @slot param from exported/external page-track APIs

Refactor KVM's exported/external page-track, a.k.a. write-track, APIs
to take only the gfn and do the required memslot lookup in KVM proper.
Forcing users of the APIs to get the memslot unnecessarily bleeds
KVM internals into KVMGT and complicates usage of the APIs.

No functional change intended.

Reviewed-by: Yan Zhao <yan.y.zhao@intel.com>
Tested-by: Yongwei Ma <yongwei.ma@intel.com>
Link: https://lore.kernel.org/r/20230729013535.1070024-28-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
drivers/gpu/drm/i915/gvt/kvmgt.c