]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Rename __kvm_zap_rmaps() to align with other nomenclature
authorSean Christopherson <seanjc@google.com>
Fri, 15 Jul 2022 22:42:23 +0000 (22:42 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 Jul 2022 17:22:16 +0000 (13:22 -0400)
commitced032c25d40aca13ef657396e50f03380d2cea1
tree7a061f7a8fda069d8c05e6ceb47019dfa8e33fc3
parent04ae7a9f370f61b86a972e080b6868f3f8df8219
KVM: x86/mmu: Rename __kvm_zap_rmaps() to align with other nomenclature

Rename __kvm_zap_rmaps() to kvm_rmap_zap_gfn_range() to avoid future
confusion with a soon-to-be-introduced __kvm_zap_rmap().  Using a plural
"rmaps" is somewhat ambiguous without additional context, as it's not
obvious whether it's referring to multiple rmap lists, versus multiple
rmap entries within a single list.

Use kvm_rmap_zap_gfn_range() to align with the pattern established by
kvm_rmap_zap_collapsible_sptes(), without losing the information that it
zaps only rmap-based MMUs, i.e. don't rename it to __kvm_zap_gfn_range().

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220715224226.3749507-5-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c