]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Introduce host_stage2_set_owner_metadata_locked()
authorWill Deacon <will@kernel.org>
Mon, 30 Mar 2026 14:48:23 +0000 (15:48 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 30 Mar 2026 15:58:08 +0000 (16:58 +0100)
commitafa72d207e6b5d49ac597fcd04f0865af63cf589
tree9969795355343ff046d2e98ae378d728b504d1ad
parentc6ba94640cf7b6da902d1d8a1383c7cf2303ca1f
KVM: arm64: Introduce host_stage2_set_owner_metadata_locked()

Rework host_stage2_set_owner_locked() to add a new helper function,
host_stage2_set_owner_metadata_locked(), which will allow us to store
additional metadata alongside a 3-bit owner ID for invalid host stage-2
entries.

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-23-will@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_pgtable.h
arch/arm64/kvm/hyp/nvhe/mem_protect.c