Skip to contentSkip to conversation

kexec: Export PG_hwpoison flag into vmcoreinfo

RFC PATCH Superseded Mitsuhiro Tanino 1 participant 1 message Oct 30, 2012

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

RFC PATCH 2/2 kexec: Export PG_hwpoison flag into vmcoreinfo

This patch exports a PG_hwpoison into vmcoreinfo when CONFIG_MEMORY_FAILURE is defined.
"makedumpfile" needs to read information of memory, such as 'mem_section', 'zone', 'pageflags' from vmcore.

We introduce a new "-p" option into "makedumpfile" to exclude hwpoison page from vmcore dump.
In order to introduce this feature, PG_hwpoison flag have to export into vmcoreinfo.

---
 kernel/kexec.c |    3 +++
 1 file changed, 3 insertions(+)
kernel/kexec.c +3 -0
index 0668d58..0d5d6bc 100644
@@ -1513,6 +1513,9 @@ static int __init crash_save_vmcoreinfo_init(void)
        VMCOREINFO_NUMBER(PG_lru);
        VMCOREINFO_NUMBER(PG_private);
        VMCOREINFO_NUMBER(PG_swapcache);
+#ifdef CONFIG_MEMORY_FAILURE
+       VMCOREINFO_NUMBER(PG_hwpoison);
+#endif
 
        arch_crash_save_vmcoreinfo();
        update_vmcoreinfo_note();

--
1.7.10.1

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec