]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Register 'selftest_vm' in the VM table
authorWill Deacon <will@kernel.org>
Mon, 30 Mar 2026 14:48:35 +0000 (15:48 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 30 Mar 2026 15:58:09 +0000 (16:58 +0100)
commit8972a991606bc021249ae53a95c131a79fdeda4a
tree7219f1d470edfd87814b62052e226779c99a5635
parentc290df5278fe8c9844b93751620664c3ca3b6e00
KVM: arm64: Register 'selftest_vm' in the VM table

In preparation for extending the pKVM page ownership selftests to cover
forceful reclaim of donated pages, rework the creation of the
'selftest_vm' so that it is registered in the VM table while the tests
are running.

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