]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Prevent unsupported memslot operations on protected VMs
authorWill Deacon <will@kernel.org>
Mon, 30 Mar 2026 14:48:10 +0000 (15:48 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 30 Mar 2026 15:58:07 +0000 (16:58 +0100)
commitf0877a1455cc6a93be14e4da741ce26ac0d6ca6d
tree8201f05e8e5b8f49c2e5b474c9dfba532d0669b0
parent7250533ad2c1f0e49567077e9b0f66b0349b357e
KVM: arm64: Prevent unsupported memslot operations on protected VMs

Protected VMs do not support deleting or moving memslots after first
run nor do they support read-only or dirty logging.

Return -EPERM to userspace if such an operation is attempted.

Reviewed-by: Fuad Tabba <tabba@google.com>
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-10-will@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/mmu.c
arch/arm64/kvm/pkvm.c