• S
    kexec: Add quick kexec support for kernel · e789f5df
    Sang Yan 提交于
    hulk inclusion
    category: feature
    bugzilla: 48159
    CVE: N/A
    
    ------------------------------
    
    In normal kexec, relocating kernel may cost 5 ~ 10 seconds, to
    copy all segments from vmalloced memory to kernel boot memory,
    because of disabled mmu.
    
    We introduce quick kexec to save time of copying memory as above,
    just like kdump(kexec on crash), by using reserved memory
    "Quick Kexec".
    
    Constructing quick kimage as the same as crash kernel,
    then simply copy all segments of kimage to reserved memroy.
    
    We also add this support in syscall kexec_load using flags
    of KEXEC_QUICK.
    Signed-off-by: NSang Yan <sangyan@huawei.com>
    Reviewed-by: NJing Xiangfeng <jingxiangfeng@huawei.com>
    Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
    e789f5df
kexec.h 11.2 KB