]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Directly "destroy" PTE list when recycling rmaps
authorSean Christopherson <seanjc@google.com>
Fri, 15 Jul 2022 22:42:21 +0000 (22:42 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 Jul 2022 17:22:15 +0000 (13:22 -0400)
commit10822ac24dcb7db5eb13d620cdb873b39ebbf420
treec3de7bb3cf320a28e2261016465c725a5ee4f77e
parent540665944633c03ebc81f5d2c20d25ab23c18dad
KVM: x86/mmu: Directly "destroy" PTE list when recycling rmaps

Use pte_list_destroy() directly when recycling rmaps instead of bouncing
through kvm_unmap_rmapp() and kvm_zap_rmapp().  Calling kvm_unmap_rmapp()
is unnecessary and odd as it requires passing dummy parameters; passing
NULL for @slot when __rmap_add() already has a valid slot is especially
weird and confusing.

No functional change intended.

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