]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commite139a34ef9d5627a41e1c02210229082140d1f92
treee68ad9ed7740e1a1b780db2573a29fc123c47308
parent8d1a182ea791f0111b0258c8f3eb8d77af0a8386
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