OSDN Git Service

KVM: arm64/mmu: count KVM s2 mmu usage in secondary pagetable stats
authorYosry Ahmed <yosryahmed@google.com>
Tue, 23 Aug 2022 00:46:39 +0000 (00:46 +0000)
committerSean Christopherson <seanjc@google.com>
Tue, 30 Aug 2022 14:44:25 +0000 (07:44 -0700)
commitd38ba8ccd9c22b177d50f896a1bdc2f0979b343f
treeb1cf2c47575da918b8015f1cdc478c2aeb0500fe
parent43a063cab325ee7cc50349967e536b3cd4e57f03
KVM: arm64/mmu: count KVM s2 mmu usage in secondary pagetable stats

Count the pages used by KVM in arm64 for stage2 mmu in memory stats
under secondary pagetable stats (e.g. "SecPageTables" in /proc/meminfo)
to give better visibility into the memory consumption of KVM mmu in a
similar way to how normal user page tables are accounted.

Signed-off-by: Yosry Ahmed <yosryahmed@google.com>
Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220823004639.2387269-5-yosryahmed@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/arm64/kvm/mmu.c