KVM: arm64: Count pKVM stage-2 usage in secondary pagetable stats
authorVincent Donnefort <vdonnefort@google.com>
Thu, 13 Mar 2025 11:40:38 +0000 (11:40 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Fri, 14 Mar 2025 07:56:30 +0000 (00:56 -0700)
commit79ea66231599c18e3b01852e28ecc2dc84d7326c
treef30b7f24cc19576b329bede16b80545e59880c31
parent8c0d7d14c5cdcf01a47c71527a522b2986798cc3
KVM: arm64: Count pKVM stage-2 usage in secondary pagetable stats

Count the pages used by pKVM for the guest stage-2 in memory stats under
secondary pagetable, similarly to what the VHE mode does.

Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20250313114038.1502357-4-vdonnefort@google.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/mmu.c
arch/arm64/kvm/pkvm.c