Hi Sourabh,
Thanks for fixing this.
Generating an FDT based on of_root (the latest unflattened device-tree)
should be ideal as something similar to what is done for /cpus here
applies to /memory@* & /ibm,dynamic-reconfiguration-memory nodes too
(probably also applies to other nodes like pci@*
kexec_file_load uses initial_boot_params in setting up the device-tree
for the kernel to be loaded. Though initial_boot_params holds info
about CPUs at the time of boot, it doesn't account for hot added CPUs.
So, kexec'ing with kexec_file_load syscall would leave the kexec'ed
kernel with inaccurat