[libvirt] [PATCH 0/8] domaincaps: Simplify adding of new domain capability features

Peter Krempa posted 8 patches 4 years, 5 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/cover.1573661034.git.pkrempa@redhat.com
docs/schemas/domaincaps.rng                   |  3 +
src/bhyve/bhyve_capabilities.c                |  4 +-
src/conf/domain_capabilities.c                | 80 ++++++++++++++-----
src/conf/domain_capabilities.h                | 15 +++-
src/libvirt_private.syms                      |  1 +
src/libxl/libxl_capabilities.c                |  5 +-
src/qemu/qemu_capabilities.c                  | 41 +++++++---
tests/domaincapsdata/libxl-xenfv.xml          |  1 +
tests/domaincapsdata/libxl-xenpv.xml          |  1 +
.../domaincapsdata/qemu_1.5.3-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_1.5.3-tcg.x86_64.xml  |  1 +
tests/domaincapsdata/qemu_1.5.3.x86_64.xml    |  1 +
.../domaincapsdata/qemu_1.6.0-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_1.6.0-tcg.x86_64.xml  |  1 +
tests/domaincapsdata/qemu_1.6.0.x86_64.xml    |  1 +
.../domaincapsdata/qemu_1.7.0-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_1.7.0-tcg.x86_64.xml  |  1 +
tests/domaincapsdata/qemu_1.7.0.x86_64.xml    |  1 +
.../domaincapsdata/qemu_2.1.1-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_2.1.1-tcg.x86_64.xml  |  1 +
tests/domaincapsdata/qemu_2.1.1.x86_64.xml    |  1 +
.../domaincapsdata/qemu_2.10.0-q35.x86_64.xml |  1 +
.../domaincapsdata/qemu_2.10.0-tcg.x86_64.xml |  1 +
.../qemu_2.10.0-virt.aarch64.xml              |  1 +
tests/domaincapsdata/qemu_2.10.0.aarch64.xml  |  1 +
tests/domaincapsdata/qemu_2.10.0.ppc64.xml    |  1 +
tests/domaincapsdata/qemu_2.10.0.s390x.xml    |  1 +
tests/domaincapsdata/qemu_2.10.0.x86_64.xml   |  1 +
.../domaincapsdata/qemu_2.11.0-q35.x86_64.xml |  1 +
.../domaincapsdata/qemu_2.11.0-tcg.x86_64.xml |  1 +
tests/domaincapsdata/qemu_2.11.0.s390x.xml    |  1 +
tests/domaincapsdata/qemu_2.11.0.x86_64.xml   |  1 +
.../domaincapsdata/qemu_2.12.0-q35.x86_64.xml |  1 +
.../domaincapsdata/qemu_2.12.0-tcg.x86_64.xml |  1 +
.../qemu_2.12.0-virt.aarch64.xml              |  1 +
tests/domaincapsdata/qemu_2.12.0.aarch64.xml  |  1 +
tests/domaincapsdata/qemu_2.12.0.ppc64.xml    |  1 +
tests/domaincapsdata/qemu_2.12.0.s390x.xml    |  1 +
tests/domaincapsdata/qemu_2.12.0.x86_64.xml   |  1 +
.../domaincapsdata/qemu_2.4.0-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_2.4.0-tcg.x86_64.xml  |  1 +
tests/domaincapsdata/qemu_2.4.0.x86_64.xml    |  1 +
.../domaincapsdata/qemu_2.5.0-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_2.5.0-tcg.x86_64.xml  |  1 +
tests/domaincapsdata/qemu_2.5.0.x86_64.xml    |  1 +
.../domaincapsdata/qemu_2.6.0-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_2.6.0-tcg.x86_64.xml  |  1 +
.../qemu_2.6.0-virt.aarch64.xml               |  1 +
tests/domaincapsdata/qemu_2.6.0.aarch64.xml   |  1 +
tests/domaincapsdata/qemu_2.6.0.ppc64.xml     |  1 +
tests/domaincapsdata/qemu_2.6.0.x86_64.xml    |  1 +
.../domaincapsdata/qemu_2.7.0-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_2.7.0-tcg.x86_64.xml  |  1 +
tests/domaincapsdata/qemu_2.7.0.s390x.xml     |  1 +
tests/domaincapsdata/qemu_2.7.0.x86_64.xml    |  1 +
.../domaincapsdata/qemu_2.8.0-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_2.8.0-tcg.x86_64.xml  |  1 +
tests/domaincapsdata/qemu_2.8.0.s390x.xml     |  1 +
tests/domaincapsdata/qemu_2.8.0.x86_64.xml    |  1 +
.../domaincapsdata/qemu_2.9.0-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_2.9.0-tcg.x86_64.xml  |  1 +
tests/domaincapsdata/qemu_2.9.0.ppc64.xml     |  1 +
tests/domaincapsdata/qemu_2.9.0.s390x.xml     |  1 +
tests/domaincapsdata/qemu_2.9.0.x86_64.xml    |  1 +
.../domaincapsdata/qemu_3.0.0-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_3.0.0-tcg.x86_64.xml  |  1 +
tests/domaincapsdata/qemu_3.0.0.ppc64.xml     |  1 +
tests/domaincapsdata/qemu_3.0.0.s390x.xml     |  1 +
tests/domaincapsdata/qemu_3.0.0.x86_64.xml    |  1 +
.../domaincapsdata/qemu_3.1.0-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_3.1.0-tcg.x86_64.xml  |  1 +
tests/domaincapsdata/qemu_3.1.0.ppc64.xml     |  1 +
tests/domaincapsdata/qemu_3.1.0.x86_64.xml    |  1 +
.../domaincapsdata/qemu_4.0.0-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_4.0.0-tcg.x86_64.xml  |  1 +
.../qemu_4.0.0-virt.aarch64.xml               |  1 +
tests/domaincapsdata/qemu_4.0.0.aarch64.xml   |  1 +
tests/domaincapsdata/qemu_4.0.0.ppc64.xml     |  1 +
tests/domaincapsdata/qemu_4.0.0.s390x.xml     |  1 +
tests/domaincapsdata/qemu_4.0.0.x86_64.xml    |  1 +
.../domaincapsdata/qemu_4.1.0-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_4.1.0-tcg.x86_64.xml  |  1 +
tests/domaincapsdata/qemu_4.1.0.x86_64.xml    |  1 +
.../domaincapsdata/qemu_4.2.0-q35.x86_64.xml  |  1 +
.../domaincapsdata/qemu_4.2.0-tcg.x86_64.xml  |  1 +
.../qemu_4.2.0-virt.aarch64.xml               |  1 +
tests/domaincapsdata/qemu_4.2.0.aarch64.xml   |  1 +
tests/domaincapsdata/qemu_4.2.0.ppc64.xml     |  1 +
tests/domaincapsdata/qemu_4.2.0.x86_64.xml    |  1 +
89 files changed, 192 insertions(+), 39 deletions(-)
[libvirt] [PATCH 0/8] domaincaps: Simplify adding of new domain capability features
Posted by Peter Krempa 4 years, 5 months ago
As you might guess I plan to add a new one later on.

Peter Krempa (8):
  conf: domaincaps: Replace FORMAT_SINGLE macro by a function
  conf: domaincaps: Extract formatting of the <features> subelement
  conf: domaincaps: Use virXMLFormatElement in
    virDomainCapsFormatFeatures
  conf: domaincaps: Add 'iothreads' to the features section
  domcaps: Add function for initializing domain caps as unsupported
  qemu: domcaps: Initialize all features
  domaincaps: Store domain capability features in an array
  qemu: domcaps: Simplify adding new domaincaps based on qemu caps

 docs/schemas/domaincaps.rng                   |  3 +
 src/bhyve/bhyve_capabilities.c                |  4 +-
 src/conf/domain_capabilities.c                | 80 ++++++++++++++-----
 src/conf/domain_capabilities.h                | 15 +++-
 src/libvirt_private.syms                      |  1 +
 src/libxl/libxl_capabilities.c                |  5 +-
 src/qemu/qemu_capabilities.c                  | 41 +++++++---
 tests/domaincapsdata/libxl-xenfv.xml          |  1 +
 tests/domaincapsdata/libxl-xenpv.xml          |  1 +
 .../domaincapsdata/qemu_1.5.3-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_1.5.3-tcg.x86_64.xml  |  1 +
 tests/domaincapsdata/qemu_1.5.3.x86_64.xml    |  1 +
 .../domaincapsdata/qemu_1.6.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_1.6.0-tcg.x86_64.xml  |  1 +
 tests/domaincapsdata/qemu_1.6.0.x86_64.xml    |  1 +
 .../domaincapsdata/qemu_1.7.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_1.7.0-tcg.x86_64.xml  |  1 +
 tests/domaincapsdata/qemu_1.7.0.x86_64.xml    |  1 +
 .../domaincapsdata/qemu_2.1.1-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_2.1.1-tcg.x86_64.xml  |  1 +
 tests/domaincapsdata/qemu_2.1.1.x86_64.xml    |  1 +
 .../domaincapsdata/qemu_2.10.0-q35.x86_64.xml |  1 +
 .../domaincapsdata/qemu_2.10.0-tcg.x86_64.xml |  1 +
 .../qemu_2.10.0-virt.aarch64.xml              |  1 +
 tests/domaincapsdata/qemu_2.10.0.aarch64.xml  |  1 +
 tests/domaincapsdata/qemu_2.10.0.ppc64.xml    |  1 +
 tests/domaincapsdata/qemu_2.10.0.s390x.xml    |  1 +
 tests/domaincapsdata/qemu_2.10.0.x86_64.xml   |  1 +
 .../domaincapsdata/qemu_2.11.0-q35.x86_64.xml |  1 +
 .../domaincapsdata/qemu_2.11.0-tcg.x86_64.xml |  1 +
 tests/domaincapsdata/qemu_2.11.0.s390x.xml    |  1 +
 tests/domaincapsdata/qemu_2.11.0.x86_64.xml   |  1 +
 .../domaincapsdata/qemu_2.12.0-q35.x86_64.xml |  1 +
 .../domaincapsdata/qemu_2.12.0-tcg.x86_64.xml |  1 +
 .../qemu_2.12.0-virt.aarch64.xml              |  1 +
 tests/domaincapsdata/qemu_2.12.0.aarch64.xml  |  1 +
 tests/domaincapsdata/qemu_2.12.0.ppc64.xml    |  1 +
 tests/domaincapsdata/qemu_2.12.0.s390x.xml    |  1 +
 tests/domaincapsdata/qemu_2.12.0.x86_64.xml   |  1 +
 .../domaincapsdata/qemu_2.4.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_2.4.0-tcg.x86_64.xml  |  1 +
 tests/domaincapsdata/qemu_2.4.0.x86_64.xml    |  1 +
 .../domaincapsdata/qemu_2.5.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_2.5.0-tcg.x86_64.xml  |  1 +
 tests/domaincapsdata/qemu_2.5.0.x86_64.xml    |  1 +
 .../domaincapsdata/qemu_2.6.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_2.6.0-tcg.x86_64.xml  |  1 +
 .../qemu_2.6.0-virt.aarch64.xml               |  1 +
 tests/domaincapsdata/qemu_2.6.0.aarch64.xml   |  1 +
 tests/domaincapsdata/qemu_2.6.0.ppc64.xml     |  1 +
 tests/domaincapsdata/qemu_2.6.0.x86_64.xml    |  1 +
 .../domaincapsdata/qemu_2.7.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_2.7.0-tcg.x86_64.xml  |  1 +
 tests/domaincapsdata/qemu_2.7.0.s390x.xml     |  1 +
 tests/domaincapsdata/qemu_2.7.0.x86_64.xml    |  1 +
 .../domaincapsdata/qemu_2.8.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_2.8.0-tcg.x86_64.xml  |  1 +
 tests/domaincapsdata/qemu_2.8.0.s390x.xml     |  1 +
 tests/domaincapsdata/qemu_2.8.0.x86_64.xml    |  1 +
 .../domaincapsdata/qemu_2.9.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_2.9.0-tcg.x86_64.xml  |  1 +
 tests/domaincapsdata/qemu_2.9.0.ppc64.xml     |  1 +
 tests/domaincapsdata/qemu_2.9.0.s390x.xml     |  1 +
 tests/domaincapsdata/qemu_2.9.0.x86_64.xml    |  1 +
 .../domaincapsdata/qemu_3.0.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_3.0.0-tcg.x86_64.xml  |  1 +
 tests/domaincapsdata/qemu_3.0.0.ppc64.xml     |  1 +
 tests/domaincapsdata/qemu_3.0.0.s390x.xml     |  1 +
 tests/domaincapsdata/qemu_3.0.0.x86_64.xml    |  1 +
 .../domaincapsdata/qemu_3.1.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_3.1.0-tcg.x86_64.xml  |  1 +
 tests/domaincapsdata/qemu_3.1.0.ppc64.xml     |  1 +
 tests/domaincapsdata/qemu_3.1.0.x86_64.xml    |  1 +
 .../domaincapsdata/qemu_4.0.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_4.0.0-tcg.x86_64.xml  |  1 +
 .../qemu_4.0.0-virt.aarch64.xml               |  1 +
 tests/domaincapsdata/qemu_4.0.0.aarch64.xml   |  1 +
 tests/domaincapsdata/qemu_4.0.0.ppc64.xml     |  1 +
 tests/domaincapsdata/qemu_4.0.0.s390x.xml     |  1 +
 tests/domaincapsdata/qemu_4.0.0.x86_64.xml    |  1 +
 .../domaincapsdata/qemu_4.1.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_4.1.0-tcg.x86_64.xml  |  1 +
 tests/domaincapsdata/qemu_4.1.0.x86_64.xml    |  1 +
 .../domaincapsdata/qemu_4.2.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_4.2.0-tcg.x86_64.xml  |  1 +
 .../qemu_4.2.0-virt.aarch64.xml               |  1 +
 tests/domaincapsdata/qemu_4.2.0.aarch64.xml   |  1 +
 tests/domaincapsdata/qemu_4.2.0.ppc64.xml     |  1 +
 tests/domaincapsdata/qemu_4.2.0.x86_64.xml    |  1 +
 89 files changed, 192 insertions(+), 39 deletions(-)

-- 
2.23.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list