lkml.org 
[lkml]   [2021]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC v1 6/8] crash hp: Add x86 crash hotplug state items to kimage
Date
To facilitate hotplug updates of the crash elfcorehdr, a few members
are added to the kimage arch struct.

The indices of the elfcorehdr and purgatory segments are recorded
here so that upon a hotplug event, those segments can be efficiently
located and updated accordingly.

The purgatory image also requires a few register context values in
order to transition from purgatory to the next/capture kernel.

Signed-off-by: Eric DeVolder <eric.devolder@oracle.com>
---
arch/x86/include/asm/kexec.h | 10 ++++++++++
1 file changed, 10 insertions(+)

diff --git a/arch/x86/include/asm/kexec.h b/arch/x86/include/asm/kexec.h
index 11b7c06e2828..b08fe56239c8 100644
--- a/arch/x86/include/asm/kexec.h
+++ b/arch/x86/include/asm/kexec.h
@@ -150,6 +150,16 @@ struct kimage_arch {
pud_t *pud;
pmd_t *pmd;
pte_t *pte;
+#ifdef CONFIG_CRASH_HOTPLUG
+ struct {
+ int elf_index;
+ int purg_index;
+ unsigned long rbx;
+ unsigned long rsi;
+ unsigned long rip;
+ unsigned long rsp;
+ } hp;
+#endif
};
#endif /* CONFIG_X86_32 */

--
2.27.0
\
 
 \ /
  Last update: 2021-11-18 18:51    [W:0.157 / U:0.924 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site