Re: [PATCH, RFC 02/62] mm: Add helpers to setup zero page mappings

2019-05-29 Thread Mike Rapoport
On Wed, May 08, 2019 at 05:43:22PM +0300, Kirill A. Shutemov wrote: > When kernel setups an encrypted page mapping, encryption KeyID is Nit: "when kernel sets up an encrypted..." > derived from a VMA. KeyID is going to be part of vma->vm_page_prot and > it will be propagated transparently to

[PATCH, RFC 02/62] mm: Add helpers to setup zero page mappings

2019-05-08 Thread Kirill A. Shutemov
When kernel setups an encrypted page mapping, encryption KeyID is derived from a VMA. KeyID is going to be part of vma->vm_page_prot and it will be propagated transparently to page table entry on mk_pte(). But there is an exception: zero page is never encrypted and its mapping must use KeyID-0,