Sourabh Jain 118005713e crash: forward memory_notify arg to arch crash hotplug handler
In the event of memory hotplug or online/offline events, the crash
memory hotplug notifier `crash_memhp_notifier()` receives a
`memory_notify` object but doesn't forward that object to the
generic and architecture-specific crash hotplug handler.

The `memory_notify` object contains the starting PFN (Page Frame Number)
and the number of pages in the hot-removed memory. This information is
necessary for architectures like PowerPC to update/recreate the kdump
image, specifically `elfcorehdr`.

So update the function signature of `crash_handle_hotplug_event()` and
`arch_crash_handle_hotplug_event()` to accept the `memory_notify` object
as an argument from crash memory hotplug notifier.

Since no such object is available in the case of CPU hotplug event, the
crash CPU hotplug notifier `crash_cpuhp_online()` passes NULL to the
crash hotplug handler.

Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>
Acked-by: Baoquan He <bhe@redhat.com>
Acked-by: Hari Bathini <hbathini@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240326055413.186534-2-sourabhjain@linux.ibm.com
2024-04-23 14:59:01 +10:00
..
2024-03-13 11:54:05 -07:00
2024-01-03 11:46:22 +01:00
2024-03-11 19:53:15 -07:00
2023-08-17 17:07:09 +02:00
2023-12-15 16:25:55 -08:00
2024-03-15 12:37:59 -07:00
2024-03-15 13:03:13 -07:00
2024-03-11 19:53:15 -07:00
2024-03-11 19:53:15 -07:00
2022-12-10 10:33:11 -06:00
2023-12-27 11:49:56 -05:00
2022-09-26 19:46:16 -07:00
2024-03-11 19:53:15 -07:00
2022-04-14 14:09:43 +02:00