[libvirt] [PATCH v2 3/3] qemu: add memfd source type

Marc-André Lureau marcandre.lureau at redhat.com
Wed Sep 19 14:44:05 UTC 2018


Hi

On Wed, Sep 19, 2018 at 5:31 PM Michal Privoznik <mprivozn at redhat.com> wrote:
>
> On 09/19/2018 01:43 PM, Jiri Denemark wrote:
> BTW: what features does this new memfd backend provides that can't be
> achieved via traditional -file or -ram backends?

2 things stand out:
- no need for files & mountpoint
- sealing, preventing grow/srink (qemu doesn't seal write)

memfd is thus a better way to share anonymous memory between processes
on linux (when you don't have other weird constrains).

Read also the initial post: https://dvdhrm.wordpress.com/tag/memfd/.
Since then memfd has grown a few more features, such as hugetlb
support.




More information about the libvir-list mailing list