]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Merge flush and non-flush tdp_mmu_iter_cond_resched
authorBen Gardon <bgardon@google.com>
Tue, 2 Feb 2021 18:57:17 +0000 (10:57 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Feb 2021 10:27:40 +0000 (05:27 -0500)
commit41415d9d0fff16f2f0009b5b10096c1d9de34b87
treee68ad9ed7740e1a1b780db2573a29fc123c47308
parenta0d914a3f7dc6e95853d3bedc9caa8dce9fe78eb
KVM: x86/mmu: Merge flush and non-flush tdp_mmu_iter_cond_resched

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>
arch/x86/kvm/mmu/tdp_mmu.c