v2 of:
https://listman.redhat.com/archives/libvir-list/2022-June/232118.html
diff to v1:
- switched from <mainloop/> to <defaultiothread/>
- switched from long long to int for pool sizes (this means that the
02/16 patch from the original series that introduced
virXMLPropLongLong() is no longer needed and thus not in this series).
- Extended some docs
- Hopefully, I've worked in all Peter's review points.
Michal Prívozník (15):
virml: Introduce VIR_XML_PROP_NONNEGATIVE flag
virDomainDefParseIOThreads: Use g_autoptr() for @iothrid
virDomainIOThreadIDDefArrayInit: Decrease scope of @iothrid
conf: Move iothread formatter into a separate function
conf: Introduce allocator for virDomainIOThreadIDDef
conf: Introduce pool_min and pool_max attributes to IOThread
qemu: Introduce QEMU_CAPS_IOTHREAD_THREAD_POOL_MAX
qemu_validate: Check if QEMU's capable of setting iothread pool size
qemu: Generate command line for IOThread pool size
include: Introduce typed params for virDomainSetIOThreadParams wrt
pool size
qemu: Wire up new virDomainSetIOThreadParams parameters
virsh: Wire up new virDomainSetIOThreadParams parameters
conf: Expose QEMU's main loop object
qemu_validate: Check if QEMU's capable of setting main loop pool size
qemu: Generate command line for main-loop pool size
docs/formatdomain.rst | 14 +-
docs/manpages/virsh.rst | 7 +-
include/libvirt/libvirt-domain.h | 22 +++
src/conf/domain_conf.c | 162 +++++++++++++++---
src/conf/domain_conf.h | 11 ++
src/conf/schemas/domaincommon.rng | 25 +++
src/conf/virconftypes.h | 2 +
src/qemu/qemu_capabilities.c | 2 +
src/qemu/qemu_capabilities.h | 1 +
src/qemu/qemu_command.c | 26 ++-
src/qemu/qemu_driver.c | 62 ++++++-
src/qemu/qemu_monitor.h | 4 +
src/qemu/qemu_monitor_json.c | 2 +
src/qemu/qemu_validate.c | 33 ++++
src/util/virxml.c | 7 +
src/util/virxml.h | 3 +
.../caps_7.1.0.x86_64.xml | 1 +
...othreads-ids-pool-sizes.x86_64-latest.args | 45 +++++
.../iothreads-ids-pool-sizes.xml | 62 +++++++
tests/qemuxml2argvtest.c | 1 +
...iothreads-ids-pool-sizes.x86_64-latest.xml | 1 +
tests/qemuxml2xmltest.c | 1 +
tools/virsh-domain.c | 24 ++-
23 files changed, 480 insertions(+), 38 deletions(-)
create mode 100644 tests/qemuxml2argvdata/iothreads-ids-pool-sizes.x86_64-latest.args
create mode 100644 tests/qemuxml2argvdata/iothreads-ids-pool-sizes.xml
create mode 120000 tests/qemuxml2xmloutdata/iothreads-ids-pool-sizes.x86_64-latest.xml
--
2.35.1