On Montag, 6. April 2020 13:59:24 CEST Ján Tomko wrote:
On a Monday in 2020, Christian Schoenebeck wrote:
>The QEMU 9pfs 'multidevs' option exists since QEMU 4.2. Probe QEMU's
>command line set though to check whether this option is really
>available, and if yes enable this new QEMU_CAPS_VIRTFS_MULTIDEVS
>capability on libvirt side.
>
>Signed-off-by: Christian Schoenebeck <qemu_oss(a)crudebyte.com>
>---
>
> src/qemu/qemu_capabilities.c | 2 ++
> src/qemu/qemu_capabilities.h | 1 +
> tests/qemucapabilitiesdata/caps_4.2.0.aarch64.xml | 1 +
> tests/qemucapabilitiesdata/caps_4.2.0.s390x.xml | 1 +
> tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml | 1 +
> tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml | 1 +
> tests/qemucapabilitiesdata/caps_5.0.0.ppc64.xml | 1 +
> tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml | 1 +
> 8 files changed, 9 insertions(+)
>
>diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
>index a95a60c36a..5514f8eabf 100644
>--- a/src/qemu/qemu_capabilities.c
>+++ b/src/qemu/qemu_capabilities.c
>@@ -567,6 +567,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
>
> "query-named-block-nodes.flat",
> "blockdev-snapshot.allow-write-only-overlay",
> "blockdev-reopen",
>
>+ "virtfs-multidevs",
since we probe the 'fsdev' command line option and use the -fsdev
command line option, I renamed the capability to QEMU_CAPS_FSDEV_MULTIDEVS
and its text variant to fsdev.multidevs
Sure, fine with me!
Best regards,
Christian Schoenebeck