[PATCH 0/7] qemu: Add qemu-namespace XML to override device properties (-set replacement)

Peter Krempa posted 7 patches 2 years, 1 month ago
Test syntax-check passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/cover.1647876193.git.pkrempa@redhat.com
There is a newer version of this series
NEWS.rst                                      |   7 +
docs/drvqemu.rst                              |  52 ++++
docs/schemas/domaincommon.rng                 |  32 +++
src/conf/domain_conf.c                        |   2 +
src/conf/domain_conf.h                        |   1 +
src/qemu/qemu_command.c                       | 133 ++++++----
src/qemu/qemu_domain.c                        | 241 ++++++++++++++++--
src/qemu/qemu_domain.h                        |  33 +++
.../qemu-ns.x86_64-4.0.0.args                 |   2 +-
.../qemu-ns.x86_64-latest.args                |   2 +-
tests/qemuxml2argvdata/qemu-ns.xml            |  12 +
.../qemu-ns.x86_64-latest.xml                 |  12 +
12 files changed, 457 insertions(+), 72 deletions(-)
[PATCH 0/7] qemu: Add qemu-namespace XML to override device properties (-set replacement)
Posted by Peter Krempa 2 years, 1 month ago
The use of '-set' via the qemu argument passthrough broke when we
switched to using JSON with -device.

Provide a replacement using the qemu namespace XML elements.

Peter Krempa (7):
  qemuDomainDefNamespaceFormatXML*: Convert to virXMLFormatElement
  docs: drvqemu: Document overriding of device properties
  qemu: domain: Add XML namespace code for overriding device config
  conf: Introduce VIR_DOMAIN_TAINT_CUSTOM_DEVICE and use it in qemu
  qemuBuildDeviceCommandlineFromJSON: Pass 'virDomainDef' into the
    function
  qemu: command: Override device definition according to the namespace
    config
  NEWS: Mention the qemu device property override feature

 NEWS.rst                                      |   7 +
 docs/drvqemu.rst                              |  52 ++++
 docs/schemas/domaincommon.rng                 |  32 +++
 src/conf/domain_conf.c                        |   2 +
 src/conf/domain_conf.h                        |   1 +
 src/qemu/qemu_command.c                       | 133 ++++++----
 src/qemu/qemu_domain.c                        | 241 ++++++++++++++++--
 src/qemu/qemu_domain.h                        |  33 +++
 .../qemu-ns.x86_64-4.0.0.args                 |   2 +-
 .../qemu-ns.x86_64-latest.args                |   2 +-
 tests/qemuxml2argvdata/qemu-ns.xml            |  12 +
 .../qemu-ns.x86_64-latest.xml                 |  12 +
 12 files changed, 457 insertions(+), 72 deletions(-)

-- 
2.35.1