diff options
author | Lianbo Jiang <lijiang@redhat.com> | 2019-04-30 15:44:20 +0800 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2019-06-20 10:07:12 +0200 |
commit | 85784d16c2cf172cf1ebaf2390d6b7c4045d659c (patch) | |
tree | a7b8c64ae08e42e470c2bec23b8a9916b760f629 /drivers | |
parent | 1a79c1b8a04153c4c387518967ce851f89e22733 (diff) |
x86/kexec: Set the C-bit in the identity map page table when SEV is active
When SEV is active, the second kernel image is loaded into encrypted
memory. For that, make sure that when kexec builds the identity mapping
page table, the memory is encrypted (i.e., _PAGE_ENC is set).
[ bp: Sort local args and OR in _PAGE_ENC for more clarity. ]
Co-developed-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Lianbo Jiang <lijiang@redhat.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: bhe@redhat.com
Cc: dyoung@redhat.com
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: kexec@lists.infradead.org
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: x86-ml <x86@kernel.org>
Link: https://lkml.kernel.org/r/20190430074421.7852-3-lijiang@redhat.com
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions