• Mahesh Salgaonkar's avatar
    fadump: Invalidate registration and release reserved memory for general use. · b500afff
    Mahesh Salgaonkar authored
    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: default avatarMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
    Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    b500afff
fadump.c 35.4 KB