Messages in this thread | | | Date | Sat, 15 Jan 2022 02:56:57 +0200 | From | Jarkko Sakkinen <> | Subject | Re: [PATCH v2 2/2] x86/sgx: account backing pages |
| |
On Fri, Jan 14, 2022 at 04:16:41PM -0800, Dave Hansen wrote: > On 1/14/22 3:57 PM, Jarkko Sakkinen wrote: > > Would it be a too big tretch to add these and make the whole scheme > > fully legit? Does not sound like an extremely huge stretch and there is now > > a full cycle amount of time make it happen before 5.18 merge window. > > No, it's not a big stretch. If anyone wants it for 5.18 (or whatever) > just send the patch.
Fixing this to work with the current mainline is first and foremost needed:
https://lore.kernel.org/linux-sgx/YeHqW8AaQ3HZZoQx@iki.fi/T/#t
With a fixeed version of that, wouldn't it be then just matter of calling shmem_getpage() with SGX_NOALLOC to check the state of the file in both calls?
/Jarkko
| |