Re: [PATCH 2/4] KVM: x86/mmu: Drop for_each_shadow_entry_using_root()
From: Jim Mattson
Date: Wed Oct 14 2026 - 09:05:09 EST
On Tue, Oct 13, 2026 at 4:17 PM Yosry Ahmed <yosry@xxxxxxxxxx> wrote:
>
> Drop for_each_shadow_entry_using_root() and open code the walk in
> __kvm_mmu_invalidate_addr(), the macro's only user, in preparation for
> handling failure to initialize the walk, e.g. if a cached root was created
> for a different MMU context and so can't be walked.
>
> No functional change intended.
>
> Suggested-by: Sean Christopherson <seanjc@xxxxxxxxxx>
> Cc: stable@xxxxxxxxxxxxxxx
> Assisted-by: LLM
> Signed-off-by: Yosry Ahmed <yosry@xxxxxxxxxx>
Reviewed-by: Jim Mattson <jmattson@xxxxxxxxxx>