[PATCH RFC-v2 00/11] qemu: Add support for iothread to virtqueue mapping for 'virtio-scsi'

Peter Krempa posted 11 patches 1 week, 1 day ago
NEWS.rst                                      |   6 +
docs/formatdomain.rst                         |  66 ++++++++++-
src/conf/domain_conf.c                        |  32 ++++--
src/conf/domain_conf.h                        |   4 +-
src/conf/domain_validate.c                    |  10 +-
src/conf/schemas/domaincommon.rng             |   9 +-
src/hypervisor/domain_driver.c                |   3 +-
src/qemu/qemu_capabilities.c                  |   2 +
src/qemu/qemu_capabilities.h                  |   1 +
src/qemu/qemu_command.c                       |  86 ++++++++++++--
src/qemu/qemu_command.h                       |  95 ++++++++++------
src/qemu/qemu_domain.c                        |  10 +-
src/qemu/qemu_validate.c                      | 105 ++++++++++++------
src/util/virxml.c                             |   2 +
.../caps_10.0.0_x86_64.replies                |   7 +-
.../caps_10.0.0_x86_64.xml                    |   3 +-
...ads-virtio-scsi-mapping.x86_64-latest.args |  40 +++++++
...eads-virtio-scsi-mapping.x86_64-latest.xml |  65 +++++++++++
.../iothreads-virtio-scsi-mapping.xml         |  57 ++++++++++
tests/qemuxmlconftest.c                       |   1 +
20 files changed, 495 insertions(+), 109 deletions(-)
create mode 100644 tests/qemuxmlconfdata/iothreads-virtio-scsi-mapping.x86_64-latest.args
create mode 100644 tests/qemuxmlconfdata/iothreads-virtio-scsi-mapping.x86_64-latest.xml
create mode 100644 tests/qemuxmlconfdata/iothreads-virtio-scsi-mapping.xml
[PATCH RFC-v2 00/11] qemu: Add support for iothread to virtqueue mapping for 'virtio-scsi'
Posted by Peter Krempa 1 week, 1 day ago
Unfortunately still RFC as the qemu support is still not merged.

Once again there are a few patches that are applicable:

  qemu: Use modern header formatting in 'qemu_command.h'
  virXMLNodeGetSubelementList: Document return value semantics
  virDomainIothreadMappingDefParse: Fix usage of
    virXMLNodeGetSubelementList
  docs: formatdomain: Clarify configuration of iothread <-> virtqueue
    mapping

The patches below are RFC:

  qemucapabilitiestest: Update 'caps_10.0.0_x86_64' to XXXXXX
  qemu: capabilities: Introduce QEMU_CAPS_VIRTIO_SCSI_IOTHREAD_MAPPING
  virDomainIothreadMapping: Add support for naming certain virt queues
  conf: Add support for iothread to queue mapping config for
    'virtio-scsi'
  qemu: Implement support for iothread <-> virtqueue mapping for
    'virtio-scsi' controllers
  qemuxmlconftest: Add 'iothreads-virtio-scsi-mapping' case
  NEWS: Mention multiple iothread support for 'virtio-scsi' controller


Changes to v1:
    - pushed the non-RFC refactors
    - few new cleanups added
    - new docs patch emphasizing the auto-assignment (in example XML
      and description) in qemu and  improved wording of docs for
      'virtio-blk' miltiqueue mapping
    - changed code to use names for 'ctrl' and 'event' virtqueues of
      'virtio-scsi'
    - used the improved docs also for virtio scsi
    - added NEWS

 NEWS.rst                                      |   6 +
 docs/formatdomain.rst                         |  66 ++++++++++-
 src/conf/domain_conf.c                        |  32 ++++--
 src/conf/domain_conf.h                        |   4 +-
 src/conf/domain_validate.c                    |  10 +-
 src/conf/schemas/domaincommon.rng             |   9 +-
 src/hypervisor/domain_driver.c                |   3 +-
 src/qemu/qemu_capabilities.c                  |   2 +
 src/qemu/qemu_capabilities.h                  |   1 +
 src/qemu/qemu_command.c                       |  86 ++++++++++++--
 src/qemu/qemu_command.h                       |  95 ++++++++++------
 src/qemu/qemu_domain.c                        |  10 +-
 src/qemu/qemu_validate.c                      | 105 ++++++++++++------
 src/util/virxml.c                             |   2 +
 .../caps_10.0.0_x86_64.replies                |   7 +-
 .../caps_10.0.0_x86_64.xml                    |   3 +-
 ...ads-virtio-scsi-mapping.x86_64-latest.args |  40 +++++++
 ...eads-virtio-scsi-mapping.x86_64-latest.xml |  65 +++++++++++
 .../iothreads-virtio-scsi-mapping.xml         |  57 ++++++++++
 tests/qemuxmlconftest.c                       |   1 +
 20 files changed, 495 insertions(+), 109 deletions(-)
 create mode 100644 tests/qemuxmlconfdata/iothreads-virtio-scsi-mapping.x86_64-latest.args
 create mode 100644 tests/qemuxmlconfdata/iothreads-virtio-scsi-mapping.x86_64-latest.xml
 create mode 100644 tests/qemuxmlconfdata/iothreads-virtio-scsi-mapping.xml

-- 
2.48.1
Re: [PATCH RFC-v2 00/11] qemu: Add support for iothread to virtqueue mapping for 'virtio-scsi'
Posted by Peter Krempa 17 hours ago
On Mon, Mar 03, 2025 at 16:30:38 +0100, Peter Krempa wrote:
> Unfortunately still RFC as the qemu support is still not merged.
> 
> Once again there are a few patches that are applicable:
> 
>   qemu: Use modern header formatting in 'qemu_command.h'
>   virXMLNodeGetSubelementList: Document return value semantics
>   virDomainIothreadMappingDefParse: Fix usage of
>     virXMLNodeGetSubelementList
>   docs: formatdomain: Clarify configuration of iothread <-> virtqueue
>     mapping


The above are non-RFC, since I'll very likely be soon posting the proper
version of this series if these'll be reviewed I can push them
beforehand, without re-spaming them :) ...

> The patches below are RFC:
> 
>   qemucapabilitiestest: Update 'caps_10.0.0_x86_64' to XXXXXX

... the qemu support will be hopefully merged soon ;)

>   qemu: capabilities: Introduce QEMU_CAPS_VIRTIO_SCSI_IOTHREAD_MAPPING