]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Allow userspace to create protected VMs when pKVM is enabled
authorWill Deacon <will@kernel.org>
Mon, 30 Mar 2026 14:48:32 +0000 (15:48 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 30 Mar 2026 15:58:09 +0000 (16:58 +0100)
commit8800dbf6614aad1013ea5f348520a2ce5ba4b6c8
tree8a1e58652a70ffedf4c12e4124a315e638142498
parent246c976c370de9380660e2bb641758dc0aae8c5c
KVM: arm64: Allow userspace to create protected VMs when pKVM is enabled

Introduce a new VM type for KVM/arm64 to allow userspace to request the
creation of a "protected VM" when the host has booted with pKVM enabled.

For now, this feature results in a taint on first use as many aspects of
a protected VM are not yet protected!

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-32-will@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_pkvm.h
arch/arm64/kvm/arm.c
arch/arm64/kvm/mmu.c
arch/arm64/kvm/pkvm.c
include/uapi/linux/kvm.h