Re: [PATCH RFC v2] mm: Add f_ops->populate()

From: Jarkko Sakkinen
Date: Mon Mar 07 2022 - 10:45:05 EST


On Mon, Mar 07, 2022 at 07:29:22AM -0800, Dave Hansen wrote:
> On 3/7/22 03:27, Jarkko Sakkinen wrote:
> > But e.g. in __mm_populate() anything with (VM_IO | VM_PFNMAP) gets
> > filtered out and never reach that function.
> >
> > I don't know unorthodox that'd be but could we perhaps have a VM
> > flag for SGX?
>
> SGX only works on a subset of the chips from one vendor on one
> architecture. That doesn't seem worth burning a VM flag.

What do you think of Matthew's idea of using ra_state for prediction?

BR, Jarkko