]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Avoid pointless annotation when mapping host-owned pages
authorWill Deacon <will@kernel.org>
Mon, 30 Mar 2026 14:48:21 +0000 (15:48 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 30 Mar 2026 15:58:08 +0000 (16:58 +0100)
commit664d61690357ac2154cd01d859d97455aa49a81d
treefa0123e7b4bf9f1fae0f635cdc6cbaa2c49be9f8
parent9ff714a09222128da16900fc7c15dea65692fc26
KVM: arm64: Avoid pointless annotation when mapping host-owned pages

When a page is transitioned to host ownership, we can eagerly map it
into the host stage-2 page-table rather than going via the convoluted
step of a faulting annotation to trigger the mapping.

Call host_stage2_idmap_locked() directly when transitioning a page to
be owned by the host.

Tested-by: Fuad Tabba <tabba@google.com>
Tested-by: Mostafa Saleh <smostafa@google.com>
Signed-off-by: Will Deacon <will@kernel.org>
Link: https://patch.msgid.link/20260330144841.26181-21-will@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp/nvhe/mem_protect.c