[libvirt PATCHv3 00/12] add virtiofs support (virtio-fs epopee)

Ján Tomko jtomko at redhat.com
Thu Jan 30 17:06:16 UTC 2020


https://bugzilla.redhat.com/show_bug.cgi?id=1694166
v1: https://www.redhat.com/archives/libvir-list/2019-November/msg00005.html
v2: https://www.redhat.com/archives/libvir-list/2020-January/msg00980.html

new in v3:
* renamed qemu.conf option
* removed cache-size since it was not yet merged in upstream QEMU
* use XPath for XML parsing
* separated virtiofsd options under the <binary> element [0]
* the binary path is now autodetected from vhost-user schemas
* log virtiofsd output into a file instead of syslog

[0] naming is hard

Ján Tomko (12):
  qemuExtDevicesStart: pass logManager
  schema: wrap fsDriver in a choice group
  qemu: add QEMU_CAPS_VHOST_USER_FS
  docs: add virtiofs kbase
  conf: qemu: add virtiofs fsdriver type
  conf: add virtiofs-related elements and attributes
  qemu: add virtiofsd_debug to qemu.conf
  qemu: validate virtiofs filesystems
  qemu: forbid migration with vhost-user-fs device
  qemu: add code for handling virtiofsd
  qemu: use the vhost-user schemas to find binary
  qemu: build vhost-user-fs device command line

 docs/formatdomain.html.in                     |  35 +-
 docs/kbase.html.in                            |   3 +
 docs/kbase/virtiofs.rst                       | 152 +++++++++
 docs/schemas/domaincommon.rng                 |  88 ++++-
 po/POTFILES.in                                |   1 +
 src/conf/domain_conf.c                        | 108 ++++++-
 src/conf/domain_conf.h                        |  16 +
 src/libvirt_private.syms                      |   1 +
 src/qemu/Makefile.inc.am                      |   2 +
 src/qemu/libvirtd_qemu.aug                    |   1 +
 src/qemu/qemu.conf                            |   7 +
 src/qemu/qemu_capabilities.c                  |   2 +
 src/qemu/qemu_capabilities.h                  |   1 +
 src/qemu/qemu_command.c                       |  47 ++-
 src/qemu/qemu_conf.c                          |   2 +
 src/qemu/qemu_conf.h                          |   1 +
 src/qemu/qemu_domain.c                        |  33 +-
 src/qemu/qemu_domain.h                        |   2 +-
 src/qemu/qemu_domain_address.c                |   4 +
 src/qemu/qemu_extdevice.c                     |  28 ++
 src/qemu/qemu_extdevice.h                     |   1 +
 src/qemu/qemu_migration.c                     |  10 +
 src/qemu/qemu_process.c                       |   4 +-
 src/qemu/qemu_vhost_user.c                    |  40 +++
 src/qemu/qemu_vhost_user.h                    |   4 +
 src/qemu/qemu_virtiofs.c                      | 302 ++++++++++++++++++
 src/qemu/qemu_virtiofs.h                      |  42 +++
 src/qemu/test_libvirtd_qemu.aug.in            |   1 +
 .../caps_4.2.0.aarch64.xml                    |   1 +
 .../qemucapabilitiesdata/caps_4.2.0.s390x.xml |   1 +
 .../caps_4.2.0.x86_64.xml                     |   1 +
 .../caps_5.0.0.x86_64.xml                     |   1 +
 ...vhost-user-fs-fd-memory.x86_64-latest.args |  39 +++
 .../vhost-user-fs-fd-memory.xml               |  43 +++
 ...vhost-user-fs-hugepages.x86_64-latest.args |  47 +++
 .../vhost-user-fs-hugepages.xml               |  75 +++++
 tests/qemuxml2argvtest.c                      |  14 +
 .../vhost-user-fs-fd-memory.x86_64-latest.xml |   1 +
 .../vhost-user-fs-hugepages.x86_64-latest.xml |   1 +
 tests/qemuxml2xmltest.c                       |   3 +
 40 files changed, 1144 insertions(+), 21 deletions(-)
 create mode 100644 docs/kbase/virtiofs.rst
 create mode 100644 src/qemu/qemu_virtiofs.c
 create mode 100644 src/qemu/qemu_virtiofs.h
 create mode 100644 tests/qemuxml2argvdata/vhost-user-fs-fd-memory.x86_64-latest.args
 create mode 100644 tests/qemuxml2argvdata/vhost-user-fs-fd-memory.xml
 create mode 100644 tests/qemuxml2argvdata/vhost-user-fs-hugepages.x86_64-latest.args
 create mode 100644 tests/qemuxml2argvdata/vhost-user-fs-hugepages.xml
 create mode 120000 tests/qemuxml2xmloutdata/vhost-user-fs-fd-memory.x86_64-latest.xml
 create mode 120000 tests/qemuxml2xmloutdata/vhost-user-fs-hugepages.x86_64-latest.xml

-- 
2.21.0




More information about the libvir-list mailing list