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

Reply via email to