x86/e820: Add a new e820 table update helper
authorAshish Kalra <ashish.kalra@amd.com>
Fri, 26 Apr 2024 00:41:56 +0000 (00:41 +0000)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 29 Apr 2024 09:15:31 +0000 (11:15 +0200)
commitd6d85ac15cce4dcf02cf8c96cb970562be6a3529
treec5897a76271542365c5c632f5fcd27fb96ac2ea1
parente67572cd2204894179d89bd7b984072f19313b03
x86/e820: Add a new e820 table update helper

Add a new API helper e820__range_update_table() with which to update an
arbitrary e820 table. Move all current users of
e820__range_update_kexec() to this new helper.

  [ bp: Massage. ]

Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/b726af213ad55053f8a7a1e793b01bb3f1ca9dd5.1714090302.git.ashish.kalra@amd.com
arch/x86/include/asm/e820/api.h
arch/x86/kernel/e820.c