summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/lib
diff options
context:
space:
mode:
authorOliver Upton <oupton@kernel.org>2025-11-19 14:11:50 -0800
committerOliver Upton <oupton@kernel.org>2025-11-19 14:11:50 -0800
commit156f70afcfecfc45be5fdc2e4adebc5ea70a93b0 (patch)
tree98d34ba699f417b12b3a49b3cf894ca5ce43c1dc /tools/testing/selftests/kvm/lib
parent85f329df293119d6ba1a26453d109556631081a4 (diff)
KVM: arm64: Only drop references on empty tables in stage2_free_walker
A subsequent change to the way KVM frees stage-2s will invoke the free walker on sub-ranges of the VM's IPA space, meaning there's potential for only partially visiting a table's PTEs. Split the leaf and table visitors and only drop references on a table when the page count reaches 1, implying there are no valid PTEs that need to be visited. Invalidate the table PTE to avoid traversing the stale reference. Link: https://msgid.link/20251113052452.975081-2-rananta@google.com Signed-off-by: Oliver Upton <oupton@kernel.org>
Diffstat (limited to 'tools/testing/selftests/kvm/lib')
0 files changed, 0 insertions, 0 deletions