]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Check whether a VM IOCTL is allowed in pKVM
authorFuad Tabba <tabba@google.com>
Thu, 11 Dec 2025 10:47:08 +0000 (10:47 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 15 Jan 2026 15:55:50 +0000 (15:55 +0000)
commitb12b3b04f6ba072ca5a618a75e546c996be94bd1
tree1e009a30a7254df14155009ffc4bdbdc14775162
parent8823485a697de5c280a7a2632620338722f16663
KVM: arm64: Check whether a VM IOCTL is allowed in pKVM

Certain VM IOCTLs are tied to specific VM features. Since pKVM does not
support all features, restrict which IOCTLs are allowed depending on
whether the associated feature is supported.

Use the existing VM capability check as the source of truth to whether
an IOCTL is allowed for a particular VM by mapping the IOCTLs with their
associated capabilities.

Suggested-by: Oliver Upton <oupton@kernel.org>
Signed-off-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20251211104710.151771-9-tabba@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_pkvm.h
arch/arm64/kvm/arm.c