KVM: x86/mmu: Refactor TDP MMU iterators to take kvm_mmu_page root
authorDavid Matlack <dmatlack@google.com>
Wed, 19 Jan 2022 23:07:32 +0000 (23:07 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 18:50:40 +0000 (13:50 -0500)
commit77aa60753a7b11502430c65a9d10d18af019a5b0
tree34cf6717022d23ffad8ed41c34b72a67a6200bde
parent315d86da89ebee1263500c81a4aa3334cc25e169
KVM: x86/mmu: Refactor TDP MMU iterators to take kvm_mmu_page root

Instead of passing a pointer to the root page table and the root level
separately, pass in a pointer to the root kvm_mmu_page struct.  This
reduces the number of arguments by 1, cutting down on line lengths.

No functional change intended.

Reviewed-by: Ben Gardon <bgardon@google.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20220119230739.2234394-12-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/tdp_iter.c
arch/x86/kvm/mmu/tdp_iter.h
arch/x86/kvm/mmu/tdp_mmu.c