]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Replace force_pte with a max_map_size attribute
authorMarc Zyngier <maz@kernel.org>
Fri, 13 Mar 2026 09:22:04 +0000 (09:22 +0000)
committerMarc Zyngier <maz@kernel.org>
Sat, 28 Mar 2026 11:29:41 +0000 (11:29 +0000)
commit29a5681843a52570ca9597bf355be33fe8753eb0
tree02d886239063d90f1dbd55e1477a97de8b837ef8
parentf8dad9602ff305b879fa23688becd578102ba547
KVM: arm64: Replace force_pte with a max_map_size attribute

force_pte is annoyingly limited in what it expresses, and we'd
be better off with a more generic primitive. Introduce max_map_size
instead, which does the trick and can be moved into the vma_info
structure. This firther allows it to reduce the scopes in which
it is mutable.

Tested-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/mmu.c