All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHv3 0/3] x86/mm/encrypt: Cleanup and switching between paging modes
@ 2018-01-24 16:36 ` Kirill A. Shutemov
  0 siblings, 0 replies; 20+ messages in thread
From: Kirill A. Shutemov @ 2018-01-24 16:36 UTC (permalink / raw)
  To: Ingo Molnar, x86, Thomas Gleixner, H. Peter Anvin, Tom Lendacky
  Cc: Linus Torvalds, Borislav Petkov, linux-mm, linux-kernel,
	Kirill A. Shutemov

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.

v3:
 - Move all page table related functions into mem_encrypt_identity.c
v2:
 - 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
    sme_populate_pgd_large()
  x86/mm/encrypt: Rewrite sme_pgtable_calc()

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

-- 
2.15.1

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

end of thread, other threads:[~2018-01-30 22:52 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-24 16:36 [PATCHv3 0/3] x86/mm/encrypt: Cleanup and switching between paging modes Kirill A. Shutemov
2018-01-24 16:36 ` Kirill A. Shutemov
2018-01-24 16:36 ` [PATCHv3 1/3] x86/mm/encrypt: Move page table helpers into separate translation unit Kirill A. Shutemov
2018-01-24 16:36   ` Kirill A. Shutemov
2018-01-30 22:26   ` Tom Lendacky
2018-01-30 22:26     ` Tom Lendacky
2018-01-30 22:28     ` Kirill A. Shutemov
2018-01-30 22:28       ` Kirill A. Shutemov
2018-01-30 22:40       ` Tom Lendacky
2018-01-30 22:40         ` Tom Lendacky
2018-01-24 16:36 ` [PATCHv3 2/3] x86/mm/encrypt: Rewrite sme_populate_pgd() and sme_populate_pgd_large() Kirill A. Shutemov
2018-01-24 16:36   ` Kirill A. Shutemov
2018-01-30 22:48   ` Tom Lendacky
2018-01-30 22:48     ` Tom Lendacky
2018-01-24 16:36 ` [PATCHv3 3/3] x86/mm/encrypt: Rewrite sme_pgtable_calc() Kirill A. Shutemov
2018-01-24 16:36   ` Kirill A. Shutemov
2018-01-30 22:51   ` Tom Lendacky
2018-01-30 22:51     ` Tom Lendacky
2018-01-30 22:52 ` [PATCHv3 0/3] x86/mm/encrypt: Cleanup and switching between paging modes Tom Lendacky
2018-01-30 22:52   ` Tom Lendacky

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.