OSDN Git Service

KVM: arm64: Allocate stage-2 pgd pages with GFP_KERNEL_ACCOUNT
authorWill Deacon <will@kernel.org>
Mon, 26 Oct 2020 14:44:23 +0000 (14:44 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 29 Oct 2020 19:49:03 +0000 (19:49 +0000)
commit7efe8ef274024ef1d5c495c79dfcbbff38c5f366
tree7c6bf05b8a106f5c84efae7a0d03ae4d8dd0fe47
parentd2782505fbe3055f983c772a448ac5cb419f9df7
KVM: arm64: Allocate stage-2 pgd pages with GFP_KERNEL_ACCOUNT

For consistency with the rest of the stage-2 page-table page allocations
(performing using a kvm_mmu_memory_cache), ensure that __GFP_ACCOUNT is
included in the GFP flags for the PGD pages.

Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Quentin Perret <qperret@google.com>
Link: https://lore.kernel.org/r/20201026144423.24683-1-will@kernel.org
arch/arm64/kvm/hyp/pgtable.c