]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Do not filter address spaces in for_each_tdp_mmu_root_yield_safe()
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 21 Sep 2023 09:44:56 +0000 (05:44 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 12:57:00 +0000 (14:57 +0200)
commit00c27bffdba6a9c7ecab241ee74e04656060c8d5
treee2d4459ea90bee93e0de8d29fafe0a9a78b86cf5
parentcd41db6cb2851478db60689e2133cfc41b555fc4
KVM: x86/mmu: Do not filter address spaces in for_each_tdp_mmu_root_yield_safe()

commit 441a5dfcd96854cbcb625709e2694a9c60adfaab upstream.

All callers except the MMU notifier want to process all address spaces.
Remove the address space ID argument of for_each_tdp_mmu_root_yield_safe()
and switch the MMU notifier to use __for_each_tdp_mmu_root_yield_safe().

Extracted out of a patch by Sean Christopherson <seanjc@google.com>

Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/tdp_mmu.c
arch/x86/kvm/mmu/tdp_mmu.h