]> www.infradead.org Git - nvme.git/commit
KVM: x86/mmu: Unnest TDP MMU helpers that allocate SPs for eager splitting
authorDavid Matlack <dmatlack@google.com>
Tue, 11 Jun 2024 22:05:11 +0000 (15:05 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 14 Jun 2024 16:24:23 +0000 (09:24 -0700)
commit3d4a5a45ca26f8de9e0a4f384a2fb0967b8566b5
treea37bc31c782cd4863196d7c397870579825387b8
parente1c04f7a9f4213c56af5021b40bc00f527bffbae
KVM: x86/mmu: Unnest TDP MMU helpers that allocate SPs for eager splitting

Move the implementation of tdp_mmu_alloc_sp_for_split() to its one and
only caller to reduce unnecessary nesting and make it more clear why the
eager split loop continues after allocating a new SP.

Opportunistically drop the double-underscores from
__tdp_mmu_alloc_sp_for_split() now that its parent is gone.

No functional change intended.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20240611220512.2426439-4-dmatlack@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/mmu/tdp_mmu.c