• M
    fadump: Invalidate registration and release reserved memory for general use. · b500afff
    Mahesh Salgaonkar 提交于
    This patch introduces an sysfs interface '/sys/kernel/fadump_release_mem' to
    invalidate the last fadump registration, invalidate '/proc/vmcore', release
    the reserved memory for general use and re-register for future kernel dump.
    Once the dump is copied to the disk, unlike phyp dump, the userspace tool
    can release all the memory reserved for dump with one single operation of
    echo 1 to '/sys/kernel/fadump_release_mem'.
    
    Release the reserved memory region excluding the size of the memory required
    for future kernel dump registration. And therefore, unlike kdump, Fadump
    doesn't need a 2nd reboot to get back the system to the production
    configuration.
    Signed-off-by: NMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
    Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
    b500afff
fadump.c 35.4 KB