Kexec Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] makedumpfile needs to remove the memory encryption
@ 2019-01-22  8:03 Lianbo Jiang
  2019-01-22  8:03 ` [PATCH 1/2] Makedumpfile: add a new variable 'sme_mask' to number_table Lianbo Jiang
  2019-01-22  8:03 ` [PATCH 2/2] Remove the memory encryption mask to obtain the true physical address Lianbo Jiang
  0 siblings, 2 replies; 13+ messages in thread
From: Lianbo Jiang @ 2019-01-22  8:03 UTC (permalink / raw)
  To: kexec; +Cc: dyoung, k-hagio, anderson, bhe

The patchset did two things:
[1] add a new variable 'sme_mask' to number_table

The variable will be used to store the sme mask for crashed kernel,
the sme_mask denotes whether the old memory is encrypted or not.

[2] remove the memory encryption mask to obtain the true physical
address

For AMD machine with SME feature, if SME is enabled in the first
kernel, the crashed kernel's page table(pgd/pud/pmd/pte) contains
the memory encryption mask, so makedumpfile needs to remove the
memory encryption mask to obtain the true physical address.

References:

x86/kdump: Export the SME mask to vmcoreinfo
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=65f750e5457aef9a8085a99d613fea0430303e93
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=f263245a0ce2c4e23b89a58fa5f7dfc048e11929

Lianbo Jiang (2):
  Makedumpfile: add a new variable 'sme_mask' to number_table
  Remove the memory encryption mask to obtain the true physical address

 arch/x86_64.c  | 3 +++
 makedumpfile.c | 4 ++++
 makedumpfile.h | 1 +
 3 files changed, 8 insertions(+)

-- 
2.17.1


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-01-28  3:15 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-22  8:03 [PATCH 0/2] makedumpfile needs to remove the memory encryption Lianbo Jiang
2019-01-22  8:03 ` [PATCH 1/2] Makedumpfile: add a new variable 'sme_mask' to number_table Lianbo Jiang
2019-01-23 21:51   ` Kazuhito Hagio
2019-01-24  9:23     ` lijiang
2019-01-22  8:03 ` [PATCH 2/2] Remove the memory encryption mask to obtain the true physical address Lianbo Jiang
2019-01-23 22:16   ` Kazuhito Hagio
2019-01-24 19:33     ` Kazuhito Hagio
2019-01-25  3:17       ` lijiang
2019-01-25  3:06     ` lijiang
2019-01-25  3:55       ` dyoung
2019-01-25 14:32         ` Lendacky, Thomas
2019-01-28  1:55           ` lijiang
2019-01-28  3:15             ` lijiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox