KVM: arm64: Return guest memory from EL2 via dedicated teardown memcache
Rather than relying on the host to free the previously-donated pKVM hypervisor VM pages explicitly on teardown, introduce a dedicated teardown memcache which allows the host to reclaim guest memory resources without having to keep track of all of the allocations made by the pKVM hypervisor at EL2. Tested-by: NVincent Donnefort <vdonnefort@google.com> Co-developed-by: NFuad Tabba <tabba@google.com> Signed-off-by: NFuad Tabba <tabba@google.com> Signed-off-by: NQuentin Perret <qperret@google.com> Signed-off-by: NWill Deacon <will@kernel.org> [maz: dropped __maybe_unused from unmap_donated_memory_noclear()] Signed-off-by: NMarc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20221110190259.26861-21-will@kernel.org
Showing
想要评论请 注册 或 登录