HWPOISON, hugetlb: support hwpoison injection for hugepage
authorNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Fri, 28 May 2010 00:29:22 +0000 (09:29 +0900)
committerAndi Kleen <ak@linux.intel.com>
Wed, 11 Aug 2010 07:23:11 +0000 (09:23 +0200)
commit43131e141abdb44c487cf79af3ef1fe5164dcef9
tree374312457143abd52f1c4b0dbada363f5a69ba55
parentfd6a03edd271cf2d69a61aa8df98dd05fa6b9afd
HWPOISON, hugetlb: support hwpoison injection for hugepage

This patch enables hwpoison injection through debug/hwpoison interfaces,
with which we can test memory error handling for free or reserved
hugepages (which cannot be tested by madvise() injector).

[AK: Export PageHuge too for the injection module]
Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
mm/hugetlb.c
mm/hwpoison-inject.c