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:42:04 +0000 (08:42 +0200)
commitb4a3a0d279249bb68fb4f4079ed4db8b0e633213
tree6eaf5adf79831a0dd69fc9eeffdd47cf018dcd74
parent8f90432d7f5967567aff390891661cc81e7879a8
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