[PATCH v2 0/3] Count pKVM stage-2 usage in secondary pagetable stat

Vincent Donnefort posted 3 patches 11 months, 1 week ago
There is a newer version of this series
arch/arm64/include/asm/kvm_host.h |  4 ++++
arch/arm64/kvm/hyp/nvhe/pkvm.c    |  7 ++++---
arch/arm64/kvm/mmu.c              | 18 +++++++++++++-----
arch/arm64/kvm/pkvm.c             |  5 +++++
4 files changed, 26 insertions(+), 8 deletions(-)
[PATCH v2 0/3] Count pKVM stage-2 usage in secondary pagetable stat
Posted by Vincent Donnefort 11 months, 1 week ago
This series allows to count stage-2 related memory when using pKVM. The
value can be found in the /proc/meminfo field SecPageTables.

Changes since v1: https://lore.kernel.org/all/20250228121355.1377891-1-vdonnefort@google.com/
  - Flags to kvm_hyp_memcache
  - Separate stage-2 memcache
  - Account for PGD

Vincent Donnefort (3):
  KVM: arm64: Add flags to kvm_hyp_memcache
  KVM: arm64: Distinct pKVM teardown memcache for stage-2
  KVM: arm64: Count pKVM stage-2 usage in secondary pagetable stats

 arch/arm64/include/asm/kvm_host.h |  4 ++++
 arch/arm64/kvm/hyp/nvhe/pkvm.c    |  7 ++++---
 arch/arm64/kvm/mmu.c              | 18 +++++++++++++-----
 arch/arm64/kvm/pkvm.c             |  5 +++++
 4 files changed, 26 insertions(+), 8 deletions(-)


base-commit: d082ecbc71e9e0bf49883ee4afd435a77a5101b6
-- 
2.48.1.711.g2feabab25a-goog