[PATCH 0/2] domcaps: Add support for 'memoryBacking' element

virt-manager needs to know if memfd memory source type is supported in order to use virtiofs. Regarding: https://listman.redhat.com/archives/virt-tools-list/2021-July/msg00000.html Kristina Hanicova (2): conf: domcaps: Report <memoryBacking> qemu: capabilities: fill in domcaps <memoryBacking> docs/formatdomaincaps.html.in | 28 +++++++++++++++++++ docs/schemas/domaincaps.rng | 10 +++++++ src/conf/domain_capabilities.c | 14 ++++++++++ src/conf/domain_capabilities.h | 8 ++++++ src/qemu/qemu_capabilities.c | 22 +++++++++++++++ src/qemu/qemu_capabilities.h | 3 ++ .../domaincapsdata/qemu_2.11.0-q35.x86_64.xml | 6 ++++ .../domaincapsdata/qemu_2.11.0-tcg.x86_64.xml | 6 ++++ tests/domaincapsdata/qemu_2.11.0.s390x.xml | 6 ++++ tests/domaincapsdata/qemu_2.11.0.x86_64.xml | 6 ++++ .../domaincapsdata/qemu_2.12.0-q35.x86_64.xml | 7 +++++ .../domaincapsdata/qemu_2.12.0-tcg.x86_64.xml | 7 +++++ .../qemu_2.12.0-virt.aarch64.xml | 7 +++++ tests/domaincapsdata/qemu_2.12.0.aarch64.xml | 7 +++++ tests/domaincapsdata/qemu_2.12.0.ppc64.xml | 7 +++++ tests/domaincapsdata/qemu_2.12.0.s390x.xml | 7 +++++ tests/domaincapsdata/qemu_2.12.0.x86_64.xml | 7 +++++ .../domaincapsdata/qemu_3.0.0-q35.x86_64.xml | 7 +++++ .../domaincapsdata/qemu_3.0.0-tcg.x86_64.xml | 7 +++++ tests/domaincapsdata/qemu_3.0.0.ppc64.xml | 7 +++++ tests/domaincapsdata/qemu_3.0.0.s390x.xml | 7 +++++ tests/domaincapsdata/qemu_3.0.0.x86_64.xml | 7 +++++ .../domaincapsdata/qemu_3.1.0-q35.x86_64.xml | 7 +++++ .../domaincapsdata/qemu_3.1.0-tcg.x86_64.xml | 7 +++++ tests/domaincapsdata/qemu_3.1.0.ppc64.xml | 7 +++++ tests/domaincapsdata/qemu_3.1.0.x86_64.xml | 7 +++++ .../domaincapsdata/qemu_4.0.0-q35.x86_64.xml | 7 +++++ .../domaincapsdata/qemu_4.0.0-tcg.x86_64.xml | 7 +++++ .../qemu_4.0.0-virt.aarch64.xml | 7 +++++ tests/domaincapsdata/qemu_4.0.0.aarch64.xml | 7 +++++ tests/domaincapsdata/qemu_4.0.0.ppc64.xml | 7 +++++ tests/domaincapsdata/qemu_4.0.0.s390x.xml | 7 +++++ tests/domaincapsdata/qemu_4.0.0.x86_64.xml | 7 +++++ .../domaincapsdata/qemu_4.1.0-q35.x86_64.xml | 7 +++++ .../domaincapsdata/qemu_4.1.0-tcg.x86_64.xml | 7 +++++ tests/domaincapsdata/qemu_4.1.0.x86_64.xml | 7 +++++ .../domaincapsdata/qemu_4.2.0-q35.x86_64.xml | 7 +++++ .../domaincapsdata/qemu_4.2.0-tcg.x86_64.xml | 7 +++++ .../qemu_4.2.0-virt.aarch64.xml | 7 +++++ tests/domaincapsdata/qemu_4.2.0.aarch64.xml | 7 +++++ tests/domaincapsdata/qemu_4.2.0.ppc64.xml | 7 +++++ tests/domaincapsdata/qemu_4.2.0.s390x.xml | 7 +++++ tests/domaincapsdata/qemu_4.2.0.x86_64.xml | 7 +++++ .../domaincapsdata/qemu_5.0.0-q35.x86_64.xml | 7 +++++ .../domaincapsdata/qemu_5.0.0-tcg.x86_64.xml | 7 +++++ .../qemu_5.0.0-virt.aarch64.xml | 7 +++++ tests/domaincapsdata/qemu_5.0.0.aarch64.xml | 7 +++++ tests/domaincapsdata/qemu_5.0.0.ppc64.xml | 7 +++++ tests/domaincapsdata/qemu_5.0.0.x86_64.xml | 7 +++++ .../domaincapsdata/qemu_5.1.0-q35.x86_64.xml | 7 +++++ .../domaincapsdata/qemu_5.1.0-tcg.x86_64.xml | 7 +++++ tests/domaincapsdata/qemu_5.1.0.sparc.xml | 7 +++++ tests/domaincapsdata/qemu_5.1.0.x86_64.xml | 7 +++++ .../domaincapsdata/qemu_5.2.0-q35.x86_64.xml | 7 +++++ .../domaincapsdata/qemu_5.2.0-tcg.x86_64.xml | 7 +++++ .../qemu_5.2.0-virt.aarch64.xml | 7 +++++ tests/domaincapsdata/qemu_5.2.0.aarch64.xml | 7 +++++ tests/domaincapsdata/qemu_5.2.0.ppc64.xml | 7 +++++ tests/domaincapsdata/qemu_5.2.0.s390x.xml | 7 +++++ tests/domaincapsdata/qemu_5.2.0.x86_64.xml | 7 +++++ .../domaincapsdata/qemu_6.0.0-q35.x86_64.xml | 7 +++++ .../domaincapsdata/qemu_6.0.0-tcg.x86_64.xml | 7 +++++ tests/domaincapsdata/qemu_6.0.0.s390x.xml | 7 +++++ tests/domaincapsdata/qemu_6.0.0.x86_64.xml | 7 +++++ .../domaincapsdata/qemu_6.1.0-q35.x86_64.xml | 7 +++++ .../domaincapsdata/qemu_6.1.0-tcg.x86_64.xml | 7 +++++ tests/domaincapsdata/qemu_6.1.0.x86_64.xml | 7 +++++ 67 files changed, 508 insertions(+) -- 2.31.1

We need to report via domcapabilities if specifying shared memory is supported without hugepages or numa config in order to find out if domain has suitable setup to make virtiofs work. The solution is to report source types of memory backing to determine if memfd is a valid option. Signed-off-by: Kristina Hanicova <khanicov@redhat.com> --- docs/formatdomaincaps.html.in | 28 ++++++++++++++++++++++++++++ docs/schemas/domaincaps.rng | 10 ++++++++++ src/conf/domain_capabilities.c | 14 ++++++++++++++ src/conf/domain_capabilities.h | 8 ++++++++ 4 files changed, 60 insertions(+) diff --git a/docs/formatdomaincaps.html.in b/docs/formatdomaincaps.html.in index 62f1940e6a..10d23f4c0b 100644 --- a/docs/formatdomaincaps.html.in +++ b/docs/formatdomaincaps.html.in @@ -290,6 +290,34 @@ <domainCapabilities> </pre> + <h3><a id="elementsMemoryBacking">Memory Backing</a></h3> + + <p> + The <code>memory backing</code> element indicates whether or not + <a href="formatdomain.html#memory-backing">memory backing</a> + is supported. + </p> + +<pre> +<domainCapabilities> + ... + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>anonymous</value> + <value>file</value> + <value>memfd</value> + </enum> + </memoryBacking> + ... +<domainCapabilities> +</pre> + + <dl> + <dt><code>sourceType</code></dt> + <dd>Options for the <code>type</code> attribute of the + <memoryBacking><source> element.</dd> + </dl> + <h3><a id="elementsDevices">Devices</a></h3> <p> diff --git a/docs/schemas/domaincaps.rng b/docs/schemas/domaincaps.rng index fc668e0c78..69d7824e7c 100644 --- a/docs/schemas/domaincaps.rng +++ b/docs/schemas/domaincaps.rng @@ -37,6 +37,9 @@ <optional> <ref name="cpu"/> </optional> + <optional> + <ref name="memoryBacking"/> + </optional> <optional> <ref name="devices"/> </optional> @@ -165,6 +168,13 @@ </element> </define> + <define name="memoryBacking"> + <element name="memoryBacking"> + <ref name="supported"/> + <ref name="enum"/> + </element> + </define> + <define name="devices"> <element name="devices"> <optional> diff --git a/src/conf/domain_capabilities.c b/src/conf/domain_capabilities.c index cb90ae0176..73139d0ec6 100644 --- a/src/conf/domain_capabilities.c +++ b/src/conf/domain_capabilities.c @@ -457,6 +457,18 @@ virDomainCapsCPUFormat(virBuffer *buf, virBufferAddLit(buf, "</cpu>\n"); } +static void +virDomainCapsMemoryBackingFormat(virBuffer *buf, + const virDomainCapsMemoryBacking *memoryBacking) +{ + FORMAT_PROLOGUE(memoryBacking); + + ENUM_PROCESS(memoryBacking, sourceType, virDomainMemorySourceTypeToString); + + FORMAT_EPILOGUE(memoryBacking); +} + + static void virDomainCapsDeviceDiskFormat(virBuffer *buf, const virDomainCapsDeviceDisk *disk) @@ -632,6 +644,8 @@ virDomainCapsFormat(const virDomainCaps *caps) virDomainCapsOSFormat(&buf, &caps->os); virDomainCapsCPUFormat(&buf, &caps->cpu); + virDomainCapsMemoryBackingFormat(&buf, &caps->memoryBacking); + virBufferAddLit(&buf, "<devices>\n"); virBufferAdjustIndent(&buf, 2); diff --git a/src/conf/domain_capabilities.h b/src/conf/domain_capabilities.h index b6433b20c9..a3765832c1 100644 --- a/src/conf/domain_capabilities.h +++ b/src/conf/domain_capabilities.h @@ -62,6 +62,13 @@ struct _virDomainCapsOS { virDomainCapsLoader loader; /* Info about virDomainLoaderDef */ }; +STATIC_ASSERT_ENUM(VIR_DOMAIN_MEMORY_SOURCE_LAST); +typedef struct _virDomainCapsMemoryBacking virDomainCapsMemoryBacking; +struct _virDomainCapsMemoryBacking { + virTristateBool supported; + virDomainCapsEnum sourceType; /* virDomainMemorySource */ +}; + STATIC_ASSERT_ENUM(VIR_DOMAIN_DISK_DEVICE_LAST); STATIC_ASSERT_ENUM(VIR_DOMAIN_DISK_BUS_LAST); STATIC_ASSERT_ENUM(VIR_DOMAIN_DISK_MODEL_LAST); @@ -196,6 +203,7 @@ struct _virDomainCaps { virDomainCapsOS os; virDomainCapsCPU cpu; + virDomainCapsMemoryBacking memoryBacking; virDomainCapsDeviceDisk disk; virDomainCapsDeviceGraphics graphics; virDomainCapsDeviceVideo video; -- 2.31.1

Signed-off-by: Kristina Hanicova <khanicov@redhat.com> --- src/qemu/qemu_capabilities.c | 22 +++++++++++++++++++ src/qemu/qemu_capabilities.h | 3 +++ .../domaincapsdata/qemu_2.11.0-q35.x86_64.xml | 6 +++++ .../domaincapsdata/qemu_2.11.0-tcg.x86_64.xml | 6 +++++ tests/domaincapsdata/qemu_2.11.0.s390x.xml | 6 +++++ tests/domaincapsdata/qemu_2.11.0.x86_64.xml | 6 +++++ .../domaincapsdata/qemu_2.12.0-q35.x86_64.xml | 7 ++++++ .../domaincapsdata/qemu_2.12.0-tcg.x86_64.xml | 7 ++++++ .../qemu_2.12.0-virt.aarch64.xml | 7 ++++++ tests/domaincapsdata/qemu_2.12.0.aarch64.xml | 7 ++++++ tests/domaincapsdata/qemu_2.12.0.ppc64.xml | 7 ++++++ tests/domaincapsdata/qemu_2.12.0.s390x.xml | 7 ++++++ tests/domaincapsdata/qemu_2.12.0.x86_64.xml | 7 ++++++ .../domaincapsdata/qemu_3.0.0-q35.x86_64.xml | 7 ++++++ .../domaincapsdata/qemu_3.0.0-tcg.x86_64.xml | 7 ++++++ tests/domaincapsdata/qemu_3.0.0.ppc64.xml | 7 ++++++ tests/domaincapsdata/qemu_3.0.0.s390x.xml | 7 ++++++ tests/domaincapsdata/qemu_3.0.0.x86_64.xml | 7 ++++++ .../domaincapsdata/qemu_3.1.0-q35.x86_64.xml | 7 ++++++ .../domaincapsdata/qemu_3.1.0-tcg.x86_64.xml | 7 ++++++ tests/domaincapsdata/qemu_3.1.0.ppc64.xml | 7 ++++++ tests/domaincapsdata/qemu_3.1.0.x86_64.xml | 7 ++++++ .../domaincapsdata/qemu_4.0.0-q35.x86_64.xml | 7 ++++++ .../domaincapsdata/qemu_4.0.0-tcg.x86_64.xml | 7 ++++++ .../qemu_4.0.0-virt.aarch64.xml | 7 ++++++ tests/domaincapsdata/qemu_4.0.0.aarch64.xml | 7 ++++++ tests/domaincapsdata/qemu_4.0.0.ppc64.xml | 7 ++++++ tests/domaincapsdata/qemu_4.0.0.s390x.xml | 7 ++++++ tests/domaincapsdata/qemu_4.0.0.x86_64.xml | 7 ++++++ .../domaincapsdata/qemu_4.1.0-q35.x86_64.xml | 7 ++++++ .../domaincapsdata/qemu_4.1.0-tcg.x86_64.xml | 7 ++++++ tests/domaincapsdata/qemu_4.1.0.x86_64.xml | 7 ++++++ .../domaincapsdata/qemu_4.2.0-q35.x86_64.xml | 7 ++++++ .../domaincapsdata/qemu_4.2.0-tcg.x86_64.xml | 7 ++++++ .../qemu_4.2.0-virt.aarch64.xml | 7 ++++++ tests/domaincapsdata/qemu_4.2.0.aarch64.xml | 7 ++++++ tests/domaincapsdata/qemu_4.2.0.ppc64.xml | 7 ++++++ tests/domaincapsdata/qemu_4.2.0.s390x.xml | 7 ++++++ tests/domaincapsdata/qemu_4.2.0.x86_64.xml | 7 ++++++ .../domaincapsdata/qemu_5.0.0-q35.x86_64.xml | 7 ++++++ .../domaincapsdata/qemu_5.0.0-tcg.x86_64.xml | 7 ++++++ .../qemu_5.0.0-virt.aarch64.xml | 7 ++++++ tests/domaincapsdata/qemu_5.0.0.aarch64.xml | 7 ++++++ tests/domaincapsdata/qemu_5.0.0.ppc64.xml | 7 ++++++ tests/domaincapsdata/qemu_5.0.0.x86_64.xml | 7 ++++++ .../domaincapsdata/qemu_5.1.0-q35.x86_64.xml | 7 ++++++ .../domaincapsdata/qemu_5.1.0-tcg.x86_64.xml | 7 ++++++ tests/domaincapsdata/qemu_5.1.0.sparc.xml | 7 ++++++ tests/domaincapsdata/qemu_5.1.0.x86_64.xml | 7 ++++++ .../domaincapsdata/qemu_5.2.0-q35.x86_64.xml | 7 ++++++ .../domaincapsdata/qemu_5.2.0-tcg.x86_64.xml | 7 ++++++ .../qemu_5.2.0-virt.aarch64.xml | 7 ++++++ tests/domaincapsdata/qemu_5.2.0.aarch64.xml | 7 ++++++ tests/domaincapsdata/qemu_5.2.0.ppc64.xml | 7 ++++++ tests/domaincapsdata/qemu_5.2.0.s390x.xml | 7 ++++++ tests/domaincapsdata/qemu_5.2.0.x86_64.xml | 7 ++++++ .../domaincapsdata/qemu_6.0.0-q35.x86_64.xml | 7 ++++++ .../domaincapsdata/qemu_6.0.0-tcg.x86_64.xml | 7 ++++++ tests/domaincapsdata/qemu_6.0.0.s390x.xml | 7 ++++++ tests/domaincapsdata/qemu_6.0.0.x86_64.xml | 7 ++++++ .../domaincapsdata/qemu_6.1.0-q35.x86_64.xml | 7 ++++++ .../domaincapsdata/qemu_6.1.0-tcg.x86_64.xml | 7 ++++++ tests/domaincapsdata/qemu_6.1.0.x86_64.xml | 7 ++++++ 63 files changed, 448 insertions(+) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index d1cd8f11ac..e0c3a07568 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -6005,6 +6005,26 @@ virQEMUCapsFillDomainFeaturesFromQEMUCaps(virQEMUCaps *qemuCaps, } +void +virQEMUCapsFillDomainMemoryBackingCaps(virQEMUCaps *qemuCaps, + virDomainCapsMemoryBacking *memoryBacking) +{ + memoryBacking->supported = VIR_TRISTATE_BOOL_YES; + memoryBacking->sourceType.report = true; + + if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_OBJECT_MEMORY_MEMFD)) + VIR_DOMAIN_CAPS_ENUM_SET(memoryBacking->sourceType, + VIR_DOMAIN_MEMORY_SOURCE_MEMFD); + + if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_OBJECT_MEMORY_FILE)) + VIR_DOMAIN_CAPS_ENUM_SET(memoryBacking->sourceType, + VIR_DOMAIN_MEMORY_SOURCE_FILE); + + VIR_DOMAIN_CAPS_ENUM_SET(memoryBacking->sourceType, + VIR_DOMAIN_MEMORY_SOURCE_ANONYMOUS); +} + + static void virQEMUCapsFillDomainDeviceDiskCaps(virQEMUCaps *qemuCaps, const char *machine, @@ -6322,6 +6342,7 @@ virQEMUCapsFillDomainCaps(virQEMUCaps *qemuCaps, virDomainCapsDeviceVideo *video = &domCaps->video; virDomainCapsDeviceRNG *rng = &domCaps->rng; virDomainCapsDeviceFilesystem *filesystem = &domCaps->filesystem; + virDomainCapsMemoryBacking *memoryBacking = &domCaps->memoryBacking; virQEMUCapsFillDomainFeaturesFromQEMUCaps(qemuCaps, domCaps); @@ -6345,6 +6366,7 @@ virQEMUCapsFillDomainCaps(virQEMUCaps *qemuCaps, return -1; virQEMUCapsFillDomainCPUCaps(qemuCaps, hostarch, domCaps); + virQEMUCapsFillDomainMemoryBackingCaps(qemuCaps, memoryBacking); virQEMUCapsFillDomainDeviceDiskCaps(qemuCaps, domCaps->machine, disk); virQEMUCapsFillDomainDeviceGraphicsCaps(qemuCaps, graphics); virQEMUCapsFillDomainDeviceVideoCaps(qemuCaps, video); diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h index 7944b9170a..368883f861 100644 --- a/src/qemu/qemu_capabilities.h +++ b/src/qemu/qemu_capabilities.h @@ -775,6 +775,9 @@ int virQEMUCapsFillDomainCaps(virQEMUCaps *qemuCaps, virFirmware **firmwares, size_t nfirmwares); +void virQEMUCapsFillDomainMemoryBackingCaps(virQEMUCaps *qemuCaps, + virDomainCapsMemoryBacking *memoryBacking); + void virQEMUCapsFillDomainDeviceGraphicsCaps(virQEMUCaps *qemuCaps, virDomainCapsDeviceGraphics *dev); diff --git a/tests/domaincapsdata/qemu_2.11.0-q35.x86_64.xml b/tests/domaincapsdata/qemu_2.11.0-q35.x86_64.xml index f5714298c1..e18b33e044 100644 --- a/tests/domaincapsdata/qemu_2.11.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.11.0-q35.x86_64.xml @@ -87,6 +87,12 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_2.11.0-tcg.x86_64.xml b/tests/domaincapsdata/qemu_2.11.0-tcg.x86_64.xml index 1392f7c50e..97402b1d4c 100644 --- a/tests/domaincapsdata/qemu_2.11.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.11.0-tcg.x86_64.xml @@ -99,6 +99,12 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_2.11.0.s390x.xml b/tests/domaincapsdata/qemu_2.11.0.s390x.xml index cd3ab38bc4..9593fa17b7 100644 --- a/tests/domaincapsdata/qemu_2.11.0.s390x.xml +++ b/tests/domaincapsdata/qemu_2.11.0.s390x.xml @@ -130,6 +130,12 @@ <model usable='yes'>z990.3-base</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_2.11.0.x86_64.xml b/tests/domaincapsdata/qemu_2.11.0.x86_64.xml index 0dde7c65c6..83ebb741cc 100644 --- a/tests/domaincapsdata/qemu_2.11.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.11.0.x86_64.xml @@ -86,6 +86,12 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_2.12.0-q35.x86_64.xml b/tests/domaincapsdata/qemu_2.12.0-q35.x86_64.xml index f7db0b4cc7..eb876a3748 100644 --- a/tests/domaincapsdata/qemu_2.12.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.12.0-q35.x86_64.xml @@ -101,6 +101,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_2.12.0-tcg.x86_64.xml b/tests/domaincapsdata/qemu_2.12.0-tcg.x86_64.xml index cb26512256..2c9a7a1c22 100644 --- a/tests/domaincapsdata/qemu_2.12.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.12.0-tcg.x86_64.xml @@ -110,6 +110,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_2.12.0-virt.aarch64.xml b/tests/domaincapsdata/qemu_2.12.0-virt.aarch64.xml index de41f9c859..6407b7ca36 100644 --- a/tests/domaincapsdata/qemu_2.12.0-virt.aarch64.xml +++ b/tests/domaincapsdata/qemu_2.12.0-virt.aarch64.xml @@ -75,6 +75,13 @@ <model usable='unknown'>pxa270</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_2.12.0.aarch64.xml b/tests/domaincapsdata/qemu_2.12.0.aarch64.xml index 0d2ed1058e..27b717318a 100644 --- a/tests/domaincapsdata/qemu_2.12.0.aarch64.xml +++ b/tests/domaincapsdata/qemu_2.12.0.aarch64.xml @@ -73,6 +73,13 @@ <model usable='unknown'>pxa270</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_2.12.0.ppc64.xml b/tests/domaincapsdata/qemu_2.12.0.ppc64.xml index e01f2c6fec..26006d2c08 100644 --- a/tests/domaincapsdata/qemu_2.12.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_2.12.0.ppc64.xml @@ -45,6 +45,13 @@ <model usable='unknown'>POWER7</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_2.12.0.s390x.xml b/tests/domaincapsdata/qemu_2.12.0.s390x.xml index 418db98294..f5851b9e23 100644 --- a/tests/domaincapsdata/qemu_2.12.0.s390x.xml +++ b/tests/domaincapsdata/qemu_2.12.0.s390x.xml @@ -129,6 +129,13 @@ <model usable='yes'>z990.3-base</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_2.12.0.x86_64.xml b/tests/domaincapsdata/qemu_2.12.0.x86_64.xml index 1ce380cea7..8d9cebe20c 100644 --- a/tests/domaincapsdata/qemu_2.12.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.12.0.x86_64.xml @@ -100,6 +100,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_3.0.0-q35.x86_64.xml b/tests/domaincapsdata/qemu_3.0.0-q35.x86_64.xml index 6dfb6135b3..20b30564f4 100644 --- a/tests/domaincapsdata/qemu_3.0.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_3.0.0-q35.x86_64.xml @@ -100,6 +100,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_3.0.0-tcg.x86_64.xml b/tests/domaincapsdata/qemu_3.0.0-tcg.x86_64.xml index 3c12f79f3a..45f578183e 100644 --- a/tests/domaincapsdata/qemu_3.0.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_3.0.0-tcg.x86_64.xml @@ -111,6 +111,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_3.0.0.ppc64.xml b/tests/domaincapsdata/qemu_3.0.0.ppc64.xml index 86dd4a0c39..36fc07f20c 100644 --- a/tests/domaincapsdata/qemu_3.0.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_3.0.0.ppc64.xml @@ -45,6 +45,13 @@ <model usable='unknown'>POWER7</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_3.0.0.s390x.xml b/tests/domaincapsdata/qemu_3.0.0.s390x.xml index d4443bde20..c298d6bf71 100644 --- a/tests/domaincapsdata/qemu_3.0.0.s390x.xml +++ b/tests/domaincapsdata/qemu_3.0.0.s390x.xml @@ -135,6 +135,13 @@ <model usable='yes'>z990.3-base</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_3.0.0.x86_64.xml b/tests/domaincapsdata/qemu_3.0.0.x86_64.xml index 1abdc89c38..19595be2b4 100644 --- a/tests/domaincapsdata/qemu_3.0.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_3.0.0.x86_64.xml @@ -99,6 +99,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_3.1.0-q35.x86_64.xml b/tests/domaincapsdata/qemu_3.1.0-q35.x86_64.xml index fd7fe4794a..62fbd05ccc 100644 --- a/tests/domaincapsdata/qemu_3.1.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_3.1.0-q35.x86_64.xml @@ -103,6 +103,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_3.1.0-tcg.x86_64.xml b/tests/domaincapsdata/qemu_3.1.0-tcg.x86_64.xml index 424c3e4e51..092a8db6b3 100644 --- a/tests/domaincapsdata/qemu_3.1.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_3.1.0-tcg.x86_64.xml @@ -114,6 +114,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_3.1.0.ppc64.xml b/tests/domaincapsdata/qemu_3.1.0.ppc64.xml index 65dc3fbd72..a45bbc7fe5 100644 --- a/tests/domaincapsdata/qemu_3.1.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_3.1.0.ppc64.xml @@ -45,6 +45,13 @@ <model usable='unknown'>POWER7</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_3.1.0.x86_64.xml b/tests/domaincapsdata/qemu_3.1.0.x86_64.xml index 409fd223bd..3c4b6d9e00 100644 --- a/tests/domaincapsdata/qemu_3.1.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_3.1.0.x86_64.xml @@ -102,6 +102,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_4.0.0-q35.x86_64.xml b/tests/domaincapsdata/qemu_4.0.0-q35.x86_64.xml index 89440e9312..ba406ef7fd 100644 --- a/tests/domaincapsdata/qemu_4.0.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.0.0-q35.x86_64.xml @@ -103,6 +103,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_4.0.0-tcg.x86_64.xml b/tests/domaincapsdata/qemu_4.0.0-tcg.x86_64.xml index 43eaa1c6aa..72b5c236d2 100644 --- a/tests/domaincapsdata/qemu_4.0.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.0.0-tcg.x86_64.xml @@ -115,6 +115,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_4.0.0-virt.aarch64.xml b/tests/domaincapsdata/qemu_4.0.0-virt.aarch64.xml index 7f8a3ef8cd..5dd21b50dc 100644 --- a/tests/domaincapsdata/qemu_4.0.0-virt.aarch64.xml +++ b/tests/domaincapsdata/qemu_4.0.0-virt.aarch64.xml @@ -78,6 +78,13 @@ <model usable='unknown'>pxa270</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_4.0.0.aarch64.xml b/tests/domaincapsdata/qemu_4.0.0.aarch64.xml index 3570d5eec2..fd0543974d 100644 --- a/tests/domaincapsdata/qemu_4.0.0.aarch64.xml +++ b/tests/domaincapsdata/qemu_4.0.0.aarch64.xml @@ -76,6 +76,13 @@ <model usable='unknown'>pxa270</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_4.0.0.ppc64.xml b/tests/domaincapsdata/qemu_4.0.0.ppc64.xml index c33967e51f..ad1a1a399a 100644 --- a/tests/domaincapsdata/qemu_4.0.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_4.0.0.ppc64.xml @@ -45,6 +45,13 @@ <model usable='unknown'>POWER7</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_4.0.0.s390x.xml b/tests/domaincapsdata/qemu_4.0.0.s390x.xml index e0ff109ead..f1f4151635 100644 --- a/tests/domaincapsdata/qemu_4.0.0.s390x.xml +++ b/tests/domaincapsdata/qemu_4.0.0.s390x.xml @@ -146,6 +146,13 @@ <model usable='yes'>z990.3-base</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_4.0.0.x86_64.xml b/tests/domaincapsdata/qemu_4.0.0.x86_64.xml index a4739c721a..cd086b7e3a 100644 --- a/tests/domaincapsdata/qemu_4.0.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.0.0.x86_64.xml @@ -102,6 +102,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_4.1.0-q35.x86_64.xml b/tests/domaincapsdata/qemu_4.1.0-q35.x86_64.xml index 4d3659bce9..233f49a21b 100644 --- a/tests/domaincapsdata/qemu_4.1.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.1.0-q35.x86_64.xml @@ -109,6 +109,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_4.1.0-tcg.x86_64.xml b/tests/domaincapsdata/qemu_4.1.0-tcg.x86_64.xml index 887c07d28f..03ebf381d0 100644 --- a/tests/domaincapsdata/qemu_4.1.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.1.0-tcg.x86_64.xml @@ -117,6 +117,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_4.1.0.x86_64.xml b/tests/domaincapsdata/qemu_4.1.0.x86_64.xml index 4e07afd3d9..8806f2d8d6 100644 --- a/tests/domaincapsdata/qemu_4.1.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.1.0.x86_64.xml @@ -108,6 +108,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml b/tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml index 39646c7d1e..5df0f5f488 100644 --- a/tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml @@ -115,6 +115,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_4.2.0-tcg.x86_64.xml b/tests/domaincapsdata/qemu_4.2.0-tcg.x86_64.xml index 5d7cea0f41..2b306b27f3 100644 --- a/tests/domaincapsdata/qemu_4.2.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.2.0-tcg.x86_64.xml @@ -122,6 +122,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_4.2.0-virt.aarch64.xml b/tests/domaincapsdata/qemu_4.2.0-virt.aarch64.xml index 740dc1f15e..792bac1298 100644 --- a/tests/domaincapsdata/qemu_4.2.0-virt.aarch64.xml +++ b/tests/domaincapsdata/qemu_4.2.0-virt.aarch64.xml @@ -78,6 +78,13 @@ <model usable='unknown'>pxa270</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_4.2.0.aarch64.xml b/tests/domaincapsdata/qemu_4.2.0.aarch64.xml index a923d30e76..7b6f3a851a 100644 --- a/tests/domaincapsdata/qemu_4.2.0.aarch64.xml +++ b/tests/domaincapsdata/qemu_4.2.0.aarch64.xml @@ -76,6 +76,13 @@ <model usable='unknown'>pxa270</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_4.2.0.ppc64.xml b/tests/domaincapsdata/qemu_4.2.0.ppc64.xml index b09e401d5c..728f4e87fc 100644 --- a/tests/domaincapsdata/qemu_4.2.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_4.2.0.ppc64.xml @@ -45,6 +45,13 @@ <model usable='unknown'>POWER7</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_4.2.0.s390x.xml b/tests/domaincapsdata/qemu_4.2.0.s390x.xml index a610c417f7..febda17e6c 100644 --- a/tests/domaincapsdata/qemu_4.2.0.s390x.xml +++ b/tests/domaincapsdata/qemu_4.2.0.s390x.xml @@ -159,6 +159,13 @@ <model usable='no'>qemu</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_4.2.0.x86_64.xml b/tests/domaincapsdata/qemu_4.2.0.x86_64.xml index 36e8bd2ff3..fd8d3a8656 100644 --- a/tests/domaincapsdata/qemu_4.2.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.2.0.x86_64.xml @@ -114,6 +114,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_5.0.0-q35.x86_64.xml b/tests/domaincapsdata/qemu_5.0.0-q35.x86_64.xml index 4f7d1bdbbc..941d65431e 100644 --- a/tests/domaincapsdata/qemu_5.0.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.0.0-q35.x86_64.xml @@ -117,6 +117,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_5.0.0-tcg.x86_64.xml b/tests/domaincapsdata/qemu_5.0.0-tcg.x86_64.xml index 97d1819482..98511dffd7 100644 --- a/tests/domaincapsdata/qemu_5.0.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.0.0-tcg.x86_64.xml @@ -123,6 +123,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_5.0.0-virt.aarch64.xml b/tests/domaincapsdata/qemu_5.0.0-virt.aarch64.xml index dcad3b3833..d673ddfaad 100644 --- a/tests/domaincapsdata/qemu_5.0.0-virt.aarch64.xml +++ b/tests/domaincapsdata/qemu_5.0.0-virt.aarch64.xml @@ -79,6 +79,13 @@ <model usable='unknown'>pxa262</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_5.0.0.aarch64.xml b/tests/domaincapsdata/qemu_5.0.0.aarch64.xml index ada3ebdb2b..b879287180 100644 --- a/tests/domaincapsdata/qemu_5.0.0.aarch64.xml +++ b/tests/domaincapsdata/qemu_5.0.0.aarch64.xml @@ -77,6 +77,13 @@ <model usable='unknown'>pxa262</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_5.0.0.ppc64.xml b/tests/domaincapsdata/qemu_5.0.0.ppc64.xml index 650188606c..14d0bc3eaf 100644 --- a/tests/domaincapsdata/qemu_5.0.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_5.0.0.ppc64.xml @@ -45,6 +45,13 @@ <model usable='unknown'>POWER7</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_5.0.0.x86_64.xml b/tests/domaincapsdata/qemu_5.0.0.x86_64.xml index 2bb72027ba..6bab719f7e 100644 --- a/tests/domaincapsdata/qemu_5.0.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.0.0.x86_64.xml @@ -116,6 +116,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_5.1.0-q35.x86_64.xml b/tests/domaincapsdata/qemu_5.1.0-q35.x86_64.xml index 95d44575fd..addffcd080 100644 --- a/tests/domaincapsdata/qemu_5.1.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.1.0-q35.x86_64.xml @@ -118,6 +118,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_5.1.0-tcg.x86_64.xml b/tests/domaincapsdata/qemu_5.1.0-tcg.x86_64.xml index 3a4ec231f3..5a094acbdb 100644 --- a/tests/domaincapsdata/qemu_5.1.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.1.0-tcg.x86_64.xml @@ -123,6 +123,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_5.1.0.sparc.xml b/tests/domaincapsdata/qemu_5.1.0.sparc.xml index 6f85a768e2..ddcffd9d44 100644 --- a/tests/domaincapsdata/qemu_5.1.0.sparc.xml +++ b/tests/domaincapsdata/qemu_5.1.0.sparc.xml @@ -33,6 +33,13 @@ <mode name='host-model' supported='no'/> <mode name='custom' supported='no'/> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_5.1.0.x86_64.xml b/tests/domaincapsdata/qemu_5.1.0.x86_64.xml index 98dfb971a2..428c6e30e8 100644 --- a/tests/domaincapsdata/qemu_5.1.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.1.0.x86_64.xml @@ -117,6 +117,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_5.2.0-q35.x86_64.xml b/tests/domaincapsdata/qemu_5.2.0-q35.x86_64.xml index 1712c2113b..db262241c7 100644 --- a/tests/domaincapsdata/qemu_5.2.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.2.0-q35.x86_64.xml @@ -118,6 +118,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_5.2.0-tcg.x86_64.xml b/tests/domaincapsdata/qemu_5.2.0-tcg.x86_64.xml index 754046fb6d..4538cf0dc8 100644 --- a/tests/domaincapsdata/qemu_5.2.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.2.0-tcg.x86_64.xml @@ -123,6 +123,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_5.2.0-virt.aarch64.xml b/tests/domaincapsdata/qemu_5.2.0-virt.aarch64.xml index 27776a667b..fb1118e33e 100644 --- a/tests/domaincapsdata/qemu_5.2.0-virt.aarch64.xml +++ b/tests/domaincapsdata/qemu_5.2.0-virt.aarch64.xml @@ -79,6 +79,13 @@ <model usable='unknown'>pxa262</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_5.2.0.aarch64.xml b/tests/domaincapsdata/qemu_5.2.0.aarch64.xml index ada3ebdb2b..b879287180 100644 --- a/tests/domaincapsdata/qemu_5.2.0.aarch64.xml +++ b/tests/domaincapsdata/qemu_5.2.0.aarch64.xml @@ -77,6 +77,13 @@ <model usable='unknown'>pxa262</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_5.2.0.ppc64.xml b/tests/domaincapsdata/qemu_5.2.0.ppc64.xml index 211f7b8ac6..094295ff29 100644 --- a/tests/domaincapsdata/qemu_5.2.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_5.2.0.ppc64.xml @@ -45,6 +45,13 @@ <model usable='unknown'>POWER7</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_5.2.0.s390x.xml b/tests/domaincapsdata/qemu_5.2.0.s390x.xml index 43905a6a85..2d389c4c89 100644 --- a/tests/domaincapsdata/qemu_5.2.0.s390x.xml +++ b/tests/domaincapsdata/qemu_5.2.0.s390x.xml @@ -161,6 +161,13 @@ <model usable='yes'>qemu</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_5.2.0.x86_64.xml b/tests/domaincapsdata/qemu_5.2.0.x86_64.xml index daf43d222c..a6a8f0ab43 100644 --- a/tests/domaincapsdata/qemu_5.2.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.2.0.x86_64.xml @@ -117,6 +117,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_6.0.0-q35.x86_64.xml b/tests/domaincapsdata/qemu_6.0.0-q35.x86_64.xml index 98edd3e37d..b7ac45c731 100644 --- a/tests/domaincapsdata/qemu_6.0.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_6.0.0-q35.x86_64.xml @@ -119,6 +119,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_6.0.0-tcg.x86_64.xml b/tests/domaincapsdata/qemu_6.0.0-tcg.x86_64.xml index 7b4cd0160a..6f53b3ea0f 100644 --- a/tests/domaincapsdata/qemu_6.0.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_6.0.0-tcg.x86_64.xml @@ -124,6 +124,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_6.0.0.s390x.xml b/tests/domaincapsdata/qemu_6.0.0.s390x.xml index d384f0859b..49663bbdd3 100644 --- a/tests/domaincapsdata/qemu_6.0.0.s390x.xml +++ b/tests/domaincapsdata/qemu_6.0.0.s390x.xml @@ -162,6 +162,13 @@ <model usable='yes'>qemu</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_6.0.0.x86_64.xml b/tests/domaincapsdata/qemu_6.0.0.x86_64.xml index 7122c89497..71aefb5bff 100644 --- a/tests/domaincapsdata/qemu_6.0.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_6.0.0.x86_64.xml @@ -118,6 +118,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_6.1.0-q35.x86_64.xml b/tests/domaincapsdata/qemu_6.1.0-q35.x86_64.xml index 057824d795..62bc6bdf05 100644 --- a/tests/domaincapsdata/qemu_6.1.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_6.1.0-q35.x86_64.xml @@ -122,6 +122,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_6.1.0-tcg.x86_64.xml b/tests/domaincapsdata/qemu_6.1.0-tcg.x86_64.xml index 6c84207231..69d5f7e404 100644 --- a/tests/domaincapsdata/qemu_6.1.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_6.1.0-tcg.x86_64.xml @@ -124,6 +124,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> diff --git a/tests/domaincapsdata/qemu_6.1.0.x86_64.xml b/tests/domaincapsdata/qemu_6.1.0.x86_64.xml index 1934035547..a21c131d41 100644 --- a/tests/domaincapsdata/qemu_6.1.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_6.1.0.x86_64.xml @@ -121,6 +121,13 @@ <model usable='yes'>486</model> </mode> </cpu> + <memoryBacking supported='yes'> + <enum name='sourceType'> + <value>file</value> + <value>anonymous</value> + <value>memfd</value> + </enum> + </memoryBacking> <devices> <disk supported='yes'> <enum name='diskDevice'> -- 2.31.1

On 7/15/21 2:18 PM, Kristina Hanicova wrote:
virt-manager needs to know if memfd memory source type is supported in order to use virtiofs.
Regarding: https://listman.redhat.com/archives/virt-tools-list/2021-July/msg00000.html
Kristina Hanicova (2): conf: domcaps: Report <memoryBacking> qemu: capabilities: fill in domcaps <memoryBacking>
67 files changed, 508 insertions(+)
Reviewed-by: Michal Privoznik <mprivozn@redhat.com> and pushed. Michal
participants (2)
-
Kristina Hanicova
-
Michal Prívozník