# RE: \[RESEND RFC PATCH 4/5\] mm/remote\_mapping: use a pidfd to access memory belonging to unrelated process

- From: Mircea CIRJALIU - MELIU \<hidden\>
- Date: 2020-09-07 16:04:23 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2020/09/6503155
- Thread: https://ratatoskr.run/linux-mm/2020/09/6503085/t.md

```text
> From: Christian Brauner <redacted>
> 
> Reading this, it really doesn't feel like a clean API. I think it would be great if
> you could investigate whether you can get a more flexible and cleaner design
> on top of memfds as suggested elsewhere in the thread.

The API may be dirty, and that can be fixed. Any suggestion is appreciated.
But the implementation underneath has a whole other purpose than just sharing 
memory.

Doing a design on top of memfd will surely make some people happy.
Don't know what to say about replacing the QEMU allocator though.

Mircea
```
