From: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> To: Ingo Molnar <mingo@redhat.com>, x86@kernel.org, Thomas Gleixner <tglx@linutronix.de>, "H. Peter Anvin" <hpa@zytor.com>, Tom Lendacky <thomas.lendacky@amd.com> Cc: Linus Torvalds <torvalds@linux-foundation.org>, Borislav Petkov <bp@suse.de>, linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> Subject: [PATCHv3 0/3] x86/mm/encrypt: Cleanup and switching between paging modes Date: Wed, 24 Jan 2018 19:36:20 +0300 [thread overview] Message-ID: <20180124163623.61765-1-kirill.shutemov@linux.intel.com> (raw) 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
WARNING: multiple messages have this Message-ID (diff)
From: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> To: Ingo Molnar <mingo@redhat.com>, x86@kernel.org, Thomas Gleixner <tglx@linutronix.de>, "H. Peter Anvin" <hpa@zytor.com>, Tom Lendacky <thomas.lendacky@amd.com> Cc: Linus Torvalds <torvalds@linux-foundation.org>, Borislav Petkov <bp@suse.de>, linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> Subject: [PATCHv3 0/3] x86/mm/encrypt: Cleanup and switching between paging modes Date: Wed, 24 Jan 2018 19:36:20 +0300 [thread overview] Message-ID: <20180124163623.61765-1-kirill.shutemov@linux.intel.com> (raw) 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 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2018-01-24 16:36 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-01-24 16:36 Kirill A. Shutemov [this message] 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 ` [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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20180124163623.61765-1-kirill.shutemov@linux.intel.com \ --to=kirill.shutemov@linux.intel.com \ --cc=bp@suse.de \ --cc=hpa@zytor.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mm@kvack.org \ --cc=mingo@redhat.com \ --cc=tglx@linutronix.de \ --cc=thomas.lendacky@amd.com \ --cc=torvalds@linux-foundation.org \ --cc=x86@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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.