On Tue, Jan 29, 2019 at 01:51:45PM +0800, Pingfan Liu wrote: > Sorry, can not catch up with you. Do you suggestion > memblock_find_in_range(0, kernel_start) and > memblock_find_in_range(kernel_end, mem_end)? But the memory is > truncated into fraction by many component which call > memblock_reserve(), besides kernel.
extract_kernel() selects the physical address where the place the kernel. You can use that physical address to figure out where to allocate the crash kernel range. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.