[libvirt PATCH v2 00/14] Improve CPU model reporting in domain capabilities

Jiri Denemark jdenemar at redhat.com
Fri Oct 7 17:21:37 UTC 2022


See individual patches for details.

Patches 4 and 6 were truncated as they include a lot of boring changes
in tests, complete patches are available in my gitlab repo:

    git fetch git at gitlab.com:jirkade/libvirt.git domaincaps

Version 2:
- original patch 10/11 was replaced by several new patches going in a
  bit different way of getting usability blockers

Jiri Denemark (14):
  conf: virDomainCapsCPUModelsAdd never fails
  cpu_ppc64: Avoid repeated loading of CPU map
  qemu: Do not pass qemuCaps to virQEMUCapsCPUFeature{To,From}QEMU
  domain_capabilities: Add vendor attribute for CPU models
  Introduce virCPUGetVendorForModel and use it in QEMU driver
  cpu_x86: Implement virCPUGetVendorForModel
  cpu_ppc64: Implement virCPUGetVendorForModel
  cpu_arm: Don't implement virCPUGetVendorForModel
  docs: Enhance documentation of CPU models in domain caps
  Document specifics of virConnectBaselineHypervisorCPU
  qemu_capabilities: Translate CPU blockers
  virsh: Add --model option for hypervisor-cpu-baseline
  virsh: Add completer for hypervisor-cpu-baseline --model
  NEWS: Document CPU reporting improvements

 NEWS.rst                                      |  22 +++
 docs/formatdomaincaps.rst                     |  30 +++-
 docs/manpages/virsh.rst                       |  14 +-
 src/conf/domain_capabilities.c                |  35 +++--
 src/conf/domain_capabilities.h                |  13 +-
 src/conf/schemas/domaincaps.rng               |   3 +
 src/cpu/cpu.c                                 |  25 +++
 src/cpu/cpu.h                                 |   8 +
 src/cpu/cpu_arm.c                             |   1 +
 src/cpu/cpu_ppc64.c                           |  67 ++++++--
 src/cpu/cpu_x86.c                             |  19 +++
 src/libvirt-host.c                            |   9 ++
 src/libvirt_private.syms                      |   1 +
 src/qemu/qemu_capabilities.c                  |  85 +++++++---
 src/qemu/qemu_capabilities.h                  |   8 +-
 src/qemu/qemu_command.c                       |   2 +-
 src/qemu/qemu_monitor.c                       |   7 +-
 src/qemu/qemu_monitor.h                       |   5 +-
 src/qemu/qemu_monitor_json.c                  |  11 +-
 src/qemu/qemu_monitor_json.h                  |   1 -
 src/qemu/qemu_process.c                       |  12 +-
 tests/cputest.c                               |  15 +-
 .../domaincapsdata/qemu_4.2.0-q35.x86_64.xml  | 104 ++++++------
 .../domaincapsdata/qemu_4.2.0-tcg.x86_64.xml  | 104 ++++++------
 .../qemu_4.2.0-virt.aarch64.xml               |  72 ++++-----
 tests/domaincapsdata/qemu_4.2.0.aarch64.xml   |  72 ++++-----
 tests/domaincapsdata/qemu_4.2.0.ppc64.xml     |   6 +-
 tests/domaincapsdata/qemu_4.2.0.s390x.xml     | 148 +++++++++---------
 tests/domaincapsdata/qemu_4.2.0.x86_64.xml    | 104 ++++++------
 .../domaincapsdata/qemu_5.0.0-q35.x86_64.xml  | 108 ++++++-------
 .../domaincapsdata/qemu_5.0.0-tcg.x86_64.xml  | 108 ++++++-------
 .../qemu_5.0.0-virt.aarch64.xml               |  74 ++++-----
 tests/domaincapsdata/qemu_5.0.0.aarch64.xml   |  74 ++++-----
 tests/domaincapsdata/qemu_5.0.0.ppc64.xml     |   8 +-
 tests/domaincapsdata/qemu_5.0.0.x86_64.xml    | 108 ++++++-------
 .../domaincapsdata/qemu_5.1.0-q35.x86_64.xml  | 108 ++++++-------
 .../domaincapsdata/qemu_5.1.0-tcg.x86_64.xml  | 108 ++++++-------
 tests/domaincapsdata/qemu_5.1.0.x86_64.xml    | 108 ++++++-------
 .../domaincapsdata/qemu_5.2.0-q35.x86_64.xml  | 108 ++++++-------
 .../domaincapsdata/qemu_5.2.0-tcg.x86_64.xml  | 108 ++++++-------
 .../qemu_5.2.0-virt.aarch64.xml               |  74 ++++-----
 tests/domaincapsdata/qemu_5.2.0.aarch64.xml   |  74 ++++-----
 tests/domaincapsdata/qemu_5.2.0.ppc64.xml     |   8 +-
 tests/domaincapsdata/qemu_5.2.0.s390x.xml     | 148 +++++++++---------
 tests/domaincapsdata/qemu_5.2.0.x86_64.xml    | 108 ++++++-------
 .../domaincapsdata/qemu_6.0.0-q35.x86_64.xml  | 110 ++++++-------
 .../domaincapsdata/qemu_6.0.0-tcg.x86_64.xml  | 110 ++++++-------
 .../qemu_6.0.0-virt.aarch64.xml               |  76 ++++-----
 tests/domaincapsdata/qemu_6.0.0.aarch64.xml   |  76 ++++-----
 tests/domaincapsdata/qemu_6.0.0.s390x.xml     | 148 +++++++++---------
 tests/domaincapsdata/qemu_6.0.0.x86_64.xml    | 110 ++++++-------
 .../domaincapsdata/qemu_6.1.0-q35.x86_64.xml  | 110 ++++++-------
 .../domaincapsdata/qemu_6.1.0-tcg.x86_64.xml  | 110 ++++++-------
 tests/domaincapsdata/qemu_6.1.0.x86_64.xml    | 110 ++++++-------
 .../domaincapsdata/qemu_6.2.0-q35.x86_64.xml  | 110 ++++++-------
 .../domaincapsdata/qemu_6.2.0-tcg.x86_64.xml  | 110 ++++++-------
 .../qemu_6.2.0-virt.aarch64.xml               |  78 ++++-----
 tests/domaincapsdata/qemu_6.2.0.aarch64.xml   |  78 ++++-----
 tests/domaincapsdata/qemu_6.2.0.ppc64.xml     |   8 +-
 tests/domaincapsdata/qemu_6.2.0.x86_64.xml    | 110 ++++++-------
 .../domaincapsdata/qemu_7.0.0-q35.x86_64.xml  | 110 ++++++-------
 .../domaincapsdata/qemu_7.0.0-tcg.x86_64.xml  | 110 ++++++-------
 .../qemu_7.0.0-virt.aarch64.xml               |  78 ++++-----
 tests/domaincapsdata/qemu_7.0.0.aarch64.xml   |  78 ++++-----
 tests/domaincapsdata/qemu_7.0.0.ppc64.xml     |   8 +-
 tests/domaincapsdata/qemu_7.0.0.x86_64.xml    | 110 ++++++-------
 .../domaincapsdata/qemu_7.1.0-q35.x86_64.xml  | 106 ++++++-------
 .../domaincapsdata/qemu_7.1.0-tcg.x86_64.xml  | 106 ++++++-------
 tests/domaincapsdata/qemu_7.1.0.x86_64.xml    | 106 ++++++-------
 tools/virsh-completer-host.c                  |  50 ++++++
 tools/virsh-completer-host.h                  |   5 +
 tools/virsh-host.c                            |  24 ++-
 tools/virsh.h                                 |   7 +-
 tools/vsh.h                                   |  27 ++++
 74 files changed, 2549 insertions(+), 2265 deletions(-)

-- 
2.38.0



More information about the libvir-list mailing list