Re: [PATCHv3 04/17] mm/page_alloc: Handle allocation for encrypted memory

2018-06-14 Thread Kirill A. Shutemov
On Wed, Jun 13, 2018 at 06:07:40PM +, Dave Hansen wrote: > On 06/12/2018 07:39 AM, Kirill A. Shutemov wrote: > > For encrypted memory, we need to allocated pages for a specific > > encryption KeyID. > > "allocate" ^ > > > There are two cases when we need to allocate a

Re: [PATCHv3 04/17] mm/page_alloc: Handle allocation for encrypted memory

2018-06-13 Thread Dave Hansen
On 06/12/2018 07:39 AM, Kirill A. Shutemov wrote: > For encrypted memory, we need to allocated pages for a specific > encryption KeyID. "allocate" ^ > There are two cases when we need to allocate a page for encryption: > > - Allocation for an encrypted VMA; > > - Alloc

[PATCHv3 04/17] mm/page_alloc: Handle allocation for encrypted memory

2018-06-12 Thread Kirill A. Shutemov
For encrypted memory, we need to allocated pages for a specific encryption KeyID. There are two cases when we need to allocate a page for encryption: - Allocation for an encrypted VMA; - Allocation for migration of encrypted page; The first case can be covered within alloc_page_vma(). The se