]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: add memfd source type
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 15 Nov 2018 11:55:53 +0000 (15:55 +0400)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 16 Nov 2018 07:57:12 +0000 (08:57 +0100)
commit24b74d187cab48a9dc9f409ea78900154c709579
treea07eb826614c7dd2c6ee7eff97b0bd5fe9a0eff2
parenta6fd5b596af7f6e07da6e5f5f2359c07eea4347a
qemu: add memfd source type

Add a new memoryBacking source type "memfd", supported by QEMU (when
the capability is available).

A memfd is a specialized anonymous memory kind. As such, an anonymous
source type could be automatically using a memfd. However, there are
some complications when migrating from different memory backends in
qemu (mainly due to the internal object naming at this point, but
there could be more). For now, it is simpler and safer to simply
introduce a new source type "memfd". Eventually, the "anonymous" type
could learn to use memfd transparently in a separate change.

The main benefits are that it doesn't need to create filesystem files,
and it also enforces sealing, providing a bit more safety.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
tests/qemuxml2argvdata/memfd-memory-numa.x86_64-latest.args [new file with mode: 0644]
tests/qemuxml2argvdata/memfd-memory-numa.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c