* [PATCH] docs: vm/hwpoison: link/style/typo fixes
@ 2020-06-30 6:39 Misono Tomohiro
0 siblings, 0 replies; only message in thread
From: Misono Tomohiro @ 2020-06-30 6:39 UTC (permalink / raw)
To: corbet; +Cc: linux-doc, misono.tomohiro
Just some link/style/typo fixes as follows:
- fix location of admin-guide file
- fix prctl arg number to match prctl man page
- fix typos and add some words
Signed-off-by: Misono Tomohiro <email@example.com>
Documentation/vm/hwpoison.rst | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/Documentation/vm/hwpoison.rst b/Documentation/vm/hwpoison.rst
index a5c884293dac..f163bf49cfde 100644
@@ -40,7 +40,7 @@ To quote the overview comment::
for the mapping from a vma to a process. Since this case is expected
to be rare we hope we can get away with this.
-The code consists of a the high level handler in mm/memory-failure.c,
+The code consists of a high level handler in mm/memory-failure.c,
a new page poison bit and various checks in the VM to handle poisoned
@@ -50,7 +50,7 @@ of applications. KVM support requires a recent qemu-kvm release.
For the KVM use there was need for a new signal type so that
KVM can inject the machine check into the guest with the proper
address. This in theory allows other applications to handle
-memory failures too. The expection is that near all applications
+memory failures too. The expectation is that near all applications
won't do that, but some very specialized ones might.
Failure recovery modes
@@ -67,30 +67,31 @@ early kill
(can be controlled globally and per process)
Send SIGBUS to the application as soon as the error is detected
This allows applications who can process memory errors in a gentle
- way (e.g. drop affected object)
+ way (e.g. drop affected object).
This is the mode used by KVM qemu.
Send SIGBUS when the application runs into the corrupted page.
- This is best for memory error unaware applications and default
+ This is best for memory error unaware applications and default.
Note some pages are always handled as late kill.
- See sysctl.txt
+ Enable memory failure recovery instead of panic.
+ See admin-guide/sysctl/vm.rst
- Enable early kill mode globally
+ Enable early kill mode globally. See admin-guide/sysctl/vm.rst
Set early/late kill mode/revert to system default
- arg1: PR_MCE_KILL_CLEAR:
+ arg2: PR_MCE_KILL_CLEAR:
Revert to system default
- arg1: PR_MCE_KILL_SET:
- arg2 defines thread specific mode
+ arg2: PR_MCE_KILL_SET:
+ arg3 defines thread specific mode
@@ -104,7 +105,7 @@ PR_MCE_KILL
call prctl(PR_MCE_KILL_EARLY) on the designated thread. Otherwise,
the SIGBUS is sent to the main thread.
return current mode
^ permalink raw reply [flat|nested] only message in thread
only message in thread, back to index
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-30 6:39 [PATCH] docs: vm/hwpoison: link/style/typo fixes Misono Tomohiro
Linux-Doc Archive on lore.kernel.org
Archives are clonable:
git clone --mirror https://lore.kernel.org/linux-doc/0 linux-doc/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 linux-doc linux-doc/ https://lore.kernel.org/linux-doc \
Example config snippet for mirrors
Newsgroup available over NNTP:
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git