diff options
author | Raghavendra Rao Ananta <rananta@google.com> | 2025-08-20 16:22:41 +0000 |
---|---|---|
committer | Oliver Upton <oliver.upton@linux.dev> | 2025-08-21 16:27:03 -0700 |
commit | 0e89ca13ee5ff41b437bb2a003c0eaf34ea43555 (patch) | |
tree | 84700bc0305c31e1e9e47d4f2f9e636a21759e69 /net/unix/af_unix.c | |
parent | d19c541d269eddd9702b687fd4ba587c7da497a2 (diff) |
KVM: arm64: Split kvm_pgtable_stage2_destroy()
Split kvm_pgtable_stage2_destroy() into two:
- kvm_pgtable_stage2_destroy_range(), that performs the
page-table walk and free the entries over a range of addresses.
- kvm_pgtable_stage2_destroy_pgd(), that frees the PGD.
This refactoring enables subsequent patches to free large page-tables
in chunks, calling cond_resched() between each chunk, to yield the
CPU as necessary.
Existing callers of kvm_pgtable_stage2_destroy(), that probably cannot
take advantage of this (such as nVMHE), will continue to function as is.
Signed-off-by: Raghavendra Rao Ananta <rananta@google.com>
Suggested-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20250820162242.2624752-2-rananta@google.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions