KVM: x86/mmu: Use gfn_t in kvm_flush_remote_tlbs_range()
authorDavid Matlack <dmatlack@google.com>
Thu, 26 Jan 2023 18:40:23 +0000 (10:40 -0800)
committerSean Christopherson <seanjc@google.com>
Fri, 17 Mar 2023 22:36:20 +0000 (15:36 -0700)
commit9d4655da1a4c17f6691a6434303d9973017bf1ca
tree4692706a5ef30a58a6bd8d279d5d70f6561f1695
parent8c63e8c2176552d5c003d7459609383d32bf47f3
KVM: x86/mmu: Use gfn_t in kvm_flush_remote_tlbs_range()

Use gfn_t instead of u64 for kvm_flush_remote_tlbs_range()'s parameters,
since gfn_t is the standard type for GFNs throughout KVM.

Opportunistically rename pages to nr_pages to make its role even more
obvious.

No functional change intended.

Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20230126184025.2294823-6-dmatlack@google.com
[sean: convert pages to gfn_t too, and rename]
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/mmu_internal.h