]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: arm64: Extend pKVM selftest for np-guests
authorQuentin Perret <qperret@google.com>
Wed, 16 Apr 2025 16:09:00 +0000 (16:09 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 6 May 2025 08:56:18 +0000 (09:56 +0100)
commit48d564507293082c370a5fc1eb3d73ad3de30561
tree78fd576d636e5ca57a6bc7f59f4db83eef6f164c
parent6c2d4c319c7db7be883428ae1161502f3f690e60
KVM: arm64: Extend pKVM selftest for np-guests

The pKVM selftest intends to test as many memory 'transitions' as
possible, so extend it to cover sharing pages with non-protected guests,
including in the case of multi-sharing.

Signed-off-by: Quentin Perret <qperret@google.com>
Link: https://lore.kernel.org/r/20250416160900.3078417-5-qperret@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_pkvm.h
arch/arm64/kvm/hyp/include/nvhe/mem_protect.h
arch/arm64/kvm/hyp/nvhe/mem_protect.c
arch/arm64/kvm/hyp/nvhe/setup.c
arch/arm64/kvm/pkvm.c