Re: [RFCv2 09/16] KVM: mm: Introduce VM_KVM_PROTECTED

2020-10-22 Thread Kirill A. Shutemov
On Wed, Oct 21, 2020 at 06:47:32PM +, Edgecombe, Rick P wrote: > On Tue, 2020-10-20 at 09:18 +0300, Kirill A. Shutemov wrote: > > include/linux/mm.h | 8 > > mm/gup.c| 20 > > mm/huge_memory.c| 20 > > mm/memory.c |

Re: [RFCv2 09/16] KVM: mm: Introduce VM_KVM_PROTECTED

2020-10-21 Thread Edgecombe, Rick P
On Tue, 2020-10-20 at 09:18 +0300, Kirill A. Shutemov wrote: > include/linux/mm.h | 8 > mm/gup.c| 20 > mm/huge_memory.c| 20 > mm/memory.c | 3 +++ > mm/mmap.c | 3 +++ > virt/kvm/async_pf.c | 2 +- > virt/

[RFCv2 09/16] KVM: mm: Introduce VM_KVM_PROTECTED

2020-10-19 Thread Kirill A. Shutemov
The new VMA flag that indicate a VMA that is not accessible to userspace but usable by kernel with GUP if FOLL_KVM is specified. The FOLL_KVM is only used in the KVM code. The code has to know how to deal with such pages. Signed-off-by: Kirill A. Shutemov --- include/linux/mm.h | 8