]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: x86/mmu: Hard code GFP flags for TDP MMU eager split allocations
authorDavid Matlack <dmatlack@google.com>
Tue, 11 Jun 2024 22:05:10 +0000 (15:05 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 14 Jun 2024 16:23:40 +0000 (09:23 -0700)
commite1c04f7a9f4213c56af5021b40bc00f527bffbae
tree3c913354cdacd1f838f084b3585222d49563d8da
parentcf3ff0ee24d6808d19dec6c9dedb5c7555bd8c55
KVM: x86/mmu: Hard code GFP flags for TDP MMU eager split allocations

Now that the GFP_NOWAIT case is gone, hard code GFP_KERNEL_ACCOUNT when
allocating shadow pages during eager page splitting in the TDP MMU.
Opportunistically replace use of __GFP_ZERO with allocations that zero
to improve readability.

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-3-dmatlack@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/mmu/tdp_mmu.c