]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Distinct pKVM teardown memcache for stage-2
authorVincent Donnefort <vdonnefort@google.com>
Thu, 13 Mar 2025 11:40:37 +0000 (11:40 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Fri, 14 Mar 2025 07:56:29 +0000 (00:56 -0700)
commit8c0d7d14c5cdcf01a47c71527a522b2986798cc3
treea550374e863617f34be8e6e2041d464d8c135baa
parentcf2d228da9a8140bd7227ca9093947d20e8ea39d
KVM: arm64: Distinct pKVM teardown memcache for stage-2

In order to account for memory dedicated to the stage-2 page-tables, use
a separated memcache when tearing down the VM. Meanwhile rename
reclaim_guest_pages to reflect the fact it only reclaim page-table
pages.

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