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

Jiri Denemark posted 11 patches 1 year, 5 months ago
Failed in applying to current master (apply log)
There is a newer version of this series
NEWS.rst                                      |  11 ++
docs/formatdomaincaps.rst                     |  20 ++-
src/conf/domain_capabilities.c                |  42 +++--
src/conf/domain_capabilities.h                |  13 +-
src/conf/schemas/domaincaps.rng               |   8 +
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_private.syms                      |   1 +
src/qemu/qemu_capabilities.c                  |  65 +++++---
src/qemu/qemu_capabilities.h                  |   4 +-
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 ++++++-------
67 files changed, 2389 insertions(+), 2256 deletions(-)
[libvirt PATCH 00/11] Improve CPU model reporting in domain capabilities
Posted by Jiri Denemark 1 year, 5 months ago
See patches 04/11 and 10/11 for details.

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

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

Jiri Denemark (11):
  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
  qemu_capabilities: Translate CPU blockers
  domain_capabilities: Add blockers attribute for CPU models
  NEWS: Document domain capabilities improvements

 NEWS.rst                                      |  11 ++
 docs/formatdomaincaps.rst                     |  20 ++-
 src/conf/domain_capabilities.c                |  42 +++--
 src/conf/domain_capabilities.h                |  13 +-
 src/conf/schemas/domaincaps.rng               |   8 +
 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_private.syms                      |   1 +
 src/qemu/qemu_capabilities.c                  |  65 +++++---
 src/qemu/qemu_capabilities.h                  |   4 +-
 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 ++++++-------
 67 files changed, 2389 insertions(+), 2256 deletions(-)

-- 
2.37.3
Re: [libvirt PATCH 00/11] Improve CPU model reporting in domain capabilities
Posted by Ján Tomko 1 year, 5 months ago
On a Tuesday in 2022, Jiri Denemark wrote:
>See patches 04/11 and 10/11 for details.
>
>Patches 4, 6, and 10 were truncated as they include a lot of boring
>changes in tests, complete patches are available in my gitlab repo:
>
>    git fetch git@gitlab.com:jirkade/libvirt.git domaincaps
>
>Jiri Denemark (11):
>  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
>  qemu_capabilities: Translate CPU blockers
>  domain_capabilities: Add blockers attribute for CPU models
>  NEWS: Document domain capabilities improvements
>
> NEWS.rst                                      |  11 ++
> docs/formatdomaincaps.rst                     |  20 ++-
> src/conf/domain_capabilities.c                |  42 +++--

[...]

> .../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 ++++++-------
> 67 files changed, 2389 insertions(+), 2256 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko@redhat.com>

Jano