HWPOISON: limit hwpoison injector to known page types
[sfrench/cifs-2.6.git] / Documentation / vm / hwpoison.txt
index 3ffadf8da61fab911bbeadbb96ef993359c89b57..4ef7bb30d15c86a68b5130fa7b0567a0ac17fd69 100644 (file)
@@ -98,10 +98,30 @@ madvise(MADV_POISON, ....)
 
 
 hwpoison-inject module through debugfs
-       /sys/debug/hwpoison/corrupt-pfn
 
-Inject hwpoison fault at PFN echoed into this file
+/sys/debug/hwpoison/
 
+corrupt-pfn
+
+Inject hwpoison fault at PFN echoed into this file. This does
+some early filtering to avoid corrupted unintended pages in test suites.
+
+unpoison-pfn
+
+Software-unpoison page at PFN echoed into this file. This
+way a page can be reused again.
+This only works for Linux injected failures, not for real
+memory failures.
+
+Note these injection interfaces are not stable and might change between
+kernel versions
+
+corrupt-filter-dev-major
+corrupt-filter-dev-minor
+
+Only handle memory failures to pages associated with the file system defined
+by block device major/minor.  -1U is the wildcard value.
+This should be only used for testing with artificial injection.
 
 Architecture specific MCE injector