KVM: arm64: Document MTE capability and ioctl
authorSteven Price <steven.price@arm.com>
Mon, 21 Jun 2021 11:17:16 +0000 (12:17 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 22 Jun 2021 13:08:07 +0000 (14:08 +0100)
commit04c02c201d7e8149ae336ead69fb64e4e6f94bc9
tree9698793cc6672d5a424a06bd84b3dc71731438a2
parentf0376edb1ddcab19a473b4bf1fbd5b6bbed3705b
KVM: arm64: Document MTE capability and ioctl

A new capability (KVM_CAP_ARM_MTE) identifies that the kernel supports
granting a guest access to the tags, and provides a mechanism for the
VMM to enable it.

A new ioctl (KVM_ARM_MTE_COPY_TAGS) provides a simple way for a VMM to
access the tags of a guest without having to maintain a PROT_MTE mapping
in userspace. The above capability gates access to the ioctl.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210621111716.37157-7-steven.price@arm.com
Documentation/virt/kvm/api.rst