]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: x86/mmu: Merge flush and non-flush tdp_mmu_iter_cond_resched
authorBen Gardon <bgardon@google.com>
Sat, 10 Apr 2021 15:12:22 +0000 (11:12 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Apr 2021 06:47:15 +0000 (08:47 +0200)
commit263d7f6a8a97b1ed290fa2b9bdbd411af3004d67
tree95cfe4b510bdd35c5dd973f80273b6efca771161
parent15e48657332753dfed71e26c7f1fda703fdda4cc
KVM: x86/mmu: Merge flush and non-flush tdp_mmu_iter_cond_resched

[ Upstream commit e139a34ef9d5627a41e1c02210229082140d1f92 ]

The flushing and non-flushing variants of tdp_mmu_iter_cond_resched have
almost identical implementations. Merge the two functions and add a
flush parameter.

Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20210202185734.1680553-12-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kvm/mmu/tdp_mmu.c