Skip to content

Commit a4baf8d

Browse files
pccMarc Zyngier
authored andcommitted
Documentation: document the ABI changes for KVM_CAP_ARM_MTE
Document both the restriction on VM_MTE_ALLOWED mappings and the relaxation for shared mappings. Signed-off-by: Peter Collingbourne <pcc@google.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20221104011041.290951-9-pcc@google.com
1 parent c911f0d commit a4baf8d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Documentation/virt/kvm/api.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7385,8 +7385,9 @@ hibernation of the host; however the VMM needs to manually save/restore the
73857385
tags as appropriate if the VM is migrated.
73867386

73877387
When this capability is enabled all memory in memslots must be mapped as
7388-
not-shareable (no MAP_SHARED), attempts to create a memslot with a
7389-
MAP_SHARED mmap will result in an -EINVAL return.
7388+
``MAP_ANONYMOUS`` or with a RAM-based file mapping (``tmpfs``, ``memfd``),
7389+
attempts to create a memslot with an invalid mmap will result in an
7390+
-EINVAL return.
73907391

73917392
When enabled the VMM may make use of the ``KVM_ARM_MTE_COPY_TAGS`` ioctl to
73927393
perform a bulk copy of tags to/from the guest.

0 commit comments

Comments
 (0)