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 <[email protected]> Acked-by: Catalin Marinas <[email protected]> Reviewed-by: Cornelia Huck <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c911f0d commit a4baf8d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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)