Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

docs: move protection-keys.rst to the core-api book

This document is used by multiple architectures:

$ echo $(git grep -l pkey_mprotect arch|cut -d'/' -f 2|sort|uniq)
alpha arm arm64 ia64 m68k microblaze mips parisc powerpc s390 sh sparc x86 xtensa

So, let's move it to the core book and adjust the links to it
accordingly.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Mauro Carvalho Chehab and committed by
Jonathan Corbet
1eecbcdc 14b76743

+4 -4
+1
Documentation/core-api/index.rst
··· 34 34 timekeeping 35 35 boot-time-mm 36 36 memory-hotplug 37 + protection-keys 37 38 38 39 39 40 Interfaces for kernel debugging
-1
Documentation/x86/index.rst
··· 19 19 tlb 20 20 mtrr 21 21 pat 22 - protection-keys 23 22 intel_mpx 24 23 amd-memory-encryption 25 24 pti
Documentation/x86/protection-keys.rst Documentation/core-api/protection-keys.rst
+1 -1
arch/powerpc/Kconfig
··· 898 898 page-based protections, but without requiring modification of the 899 899 page tables when an application changes protection domains. 900 900 901 - For details, see Documentation/vm/protection-keys.rst 901 + For details, see Documentation/core-api/protection-keys.rst 902 902 903 903 If unsure, say y. 904 904
+1 -1
arch/x86/Kconfig
··· 1911 1911 page-based protections, but without requiring modification of the 1912 1912 page tables when an application changes protection domains. 1913 1913 1914 - For details, see Documentation/x86/protection-keys.txt 1914 + For details, see Documentation/core-api/protection-keys.rst 1915 1915 1916 1916 If unsure, say y. 1917 1917
+1 -1
tools/testing/selftests/x86/protection_keys.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 /* 3 - * Tests x86 Memory Protection Keys (see Documentation/x86/protection-keys.txt) 3 + * Tests x86 Memory Protection Keys (see Documentation/core-api/protection-keys.rst) 4 4 * 5 5 * There are examples in here of: 6 6 * * how to set protection keys on memory