[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180124155227.wg7itpohsvd2i7wt@black.fi.intel.com>
Date: Wed, 24 Jan 2018 18:52:27 +0300
From: "Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>
To: Tom Lendacky <thomas.lendacky@....com>
Cc: Ingo Molnar <mingo@...hat.com>, x86@...nel.org,
Thomas Gleixner <tglx@...utronix.de>,
"H. Peter Anvin" <hpa@...or.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Borislav Petkov <bp@...e.de>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/3] x86/mm/encrypt: Move sme_populate_pgd*() into
separate translation unit
On Wed, Jan 24, 2018 at 02:59:58PM +0000, Tom Lendacky wrote:
> > static void __init sme_clear_pgd(struct sme_populate_pgd_data *ppd)
>
> If you're going to move some of the functions, did you look at moving the
> sme_enable(), sme_encrypt_kernel(), etc., too? I believe everything below
> the sme_populate_pgd_data structure is used during early identity-mapped
> boot time. If you move everything, then mm_internal.h doesn't need to be
> updated and all of the identity-mapped early boot code ends up in one
> file.
>
> You'd have to move the command line declarations and make sev_enabled
> not a static, but it should be doable.
I moved minimum of the code to get the trick work, but I'll look into
moving move there.
--
Kirill A. Shutemov
Powered by blists - more mailing lists