Re: [PATCH v41 10/24] mm: Add 'mprotect' hook to struct vm_operations_struct

2020-11-17 Thread Jarkko Sakkinen
On Mon, Nov 16, 2020 at 10:09:57AM +, Mel Gorman wrote: > On Sun, Nov 15, 2020 at 10:36:51AM -0800, Dave Hansen wrote: > > On 11/15/20 9:32 AM, Matthew Wilcox wrote: > > > On Fri, Nov 13, 2020 at 12:01:21AM +0200, Jarkko Sakkinen wrote: > > >> +++ b/include/linux/mm.h > > >> @@ -559,6 +559,13

Re: [PATCH v41 10/24] mm: Add 'mprotect' hook to struct vm_operations_struct

2020-11-17 Thread Jarkko Sakkinen
On Sun, Nov 15, 2020 at 11:05:48AM +0800, Hillf Danton wrote: > On Fri, 13 Nov 2020 00:01:21 +0200 > > From: Sean Christopherson > > > > Background > > == > > > > 1. SGX enclave pages are populated with data by copying from normal memory > >via ioctl() (SGX_IOC_ENCLAVE_ADD_PAGES),

Re: [PATCH v41 10/24] mm: Add 'mprotect' hook to struct vm_operations_struct

2020-11-17 Thread Jarkko Sakkinen
On Fri, Nov 13, 2020 at 10:25:43AM +, Mel Gorman wrote: > On Fri, Nov 13, 2020 at 12:01:21AM +0200, Jarkko Sakkinen wrote: > > From: Sean Christopherson > > > > Background > > == > > > > 1. SGX enclave pages are populated with data by copying from normal memory > >via ioctl()

Re: [PATCH v41 10/24] mm: Add 'mprotect' hook to struct vm_operations_struct

2020-11-16 Thread Mel Gorman
On Sun, Nov 15, 2020 at 10:36:51AM -0800, Dave Hansen wrote: > On 11/15/20 9:32 AM, Matthew Wilcox wrote: > > On Fri, Nov 13, 2020 at 12:01:21AM +0200, Jarkko Sakkinen wrote: > >> +++ b/include/linux/mm.h > >> @@ -559,6 +559,13 @@ struct vm_operations_struct { > >>void (*close)(struct

Re: [PATCH v41 10/24] mm: Add 'mprotect' hook to struct vm_operations_struct

2020-11-15 Thread Dave Hansen
On 11/15/20 9:32 AM, Matthew Wilcox wrote: > On Fri, Nov 13, 2020 at 12:01:21AM +0200, Jarkko Sakkinen wrote: >> +++ b/include/linux/mm.h >> @@ -559,6 +559,13 @@ struct vm_operations_struct { >> void (*close)(struct vm_area_struct * area); >> int (*split)(struct vm_area_struct * area,

Re: [PATCH v41 10/24] mm: Add 'mprotect' hook to struct vm_operations_struct

2020-11-15 Thread Matthew Wilcox
On Fri, Nov 13, 2020 at 12:01:21AM +0200, Jarkko Sakkinen wrote: > +++ b/include/linux/mm.h > @@ -559,6 +559,13 @@ struct vm_operations_struct { > void (*close)(struct vm_area_struct * area); > int (*split)(struct vm_area_struct * area, unsigned long addr); > int (*mremap)(struct

Re: [PATCH v41 10/24] mm: Add 'mprotect' hook to struct vm_operations_struct

2020-11-15 Thread Dr. Greg
On Fri, Nov 13, 2020 at 12:01:21AM +0200, Jarkko Sakkinen wrote: Good morning, I hope the weekend is going well for everyone. > From: Sean Christopherson We wish Sean well in whatever new avocation he has chosen. > Background > == > > 1. SGX enclave pages are populated with data by

Re: [PATCH v41 10/24] mm: Add 'mprotect' hook to struct vm_operations_struct

2020-11-13 Thread Mel Gorman
On Fri, Nov 13, 2020 at 12:01:21AM +0200, Jarkko Sakkinen wrote: > From: Sean Christopherson > > Background > == > > 1. SGX enclave pages are populated with data by copying from normal memory >via ioctl() (SGX_IOC_ENCLAVE_ADD_PAGES), which will be added later in >this series. >

[PATCH v41 10/24] mm: Add 'mprotect' hook to struct vm_operations_struct

2020-11-12 Thread Jarkko Sakkinen
From: Sean Christopherson Background == 1. SGX enclave pages are populated with data by copying from normal memory via ioctl() (SGX_IOC_ENCLAVE_ADD_PAGES), which will be added later in this series. 2. It is desirable to be able to restrict those normal memory data sources. For