[lkml]   [2018]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCHv4 0/3] x86/mm/encrypt: Cleanup and switching between paging modes<Paste>
This patcheset is a preparation set for boot-time switching between
paging modes. Please review and consider applying.

Code around sme_populate_pgd() is unnecessary complex and hard to modify.

This patchset rewrites it in more stream-lined way to add support of
boot-time switching between paging modes.

I haven't tested the patchset on hardware capable of memory encryption.

- Move sev_enabled declaration to <linux/mem_encrypt.h>
- Fix few typos in commit messages
- Reviewed/Tested-by from Tom
- Move all page table related functions into mem_encrypt_identity.c
- Rebased to up-to-date tip

Kirill A. Shutemov (3):
x86/mm/encrypt: Move page table helpers into separate translation unit
x86/mm/encrypt: Rewrite sme_populate_pgd() and
x86/mm/encrypt: Rewrite sme_pgtable_calc()

arch/x86/include/asm/mem_encrypt.h | 1 +
arch/x86/mm/Makefile | 14 +-
arch/x86/mm/mem_encrypt.c | 578 +------------------------------------
arch/x86/mm/mem_encrypt_identity.c | 564 ++++++++++++++++++++++++++++++++++++
4 files changed, 575 insertions(+), 582 deletions(-)
create mode 100644 arch/x86/mm/mem_encrypt_identity.c


 \ /
  Last update: 2018-01-31 14:57    [W:0.052 / U:33.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site