[libvirt] [PATCH v2 0/7] cpuGetModels: Create a NULL-terminated list

Jiri Denemark jdenemar at redhat.com
Thu May 19 11:07:01 UTC 2016


The list of CPU models is freed using virStringFreeList, which expects
the list to by NULL-terminated.

Jiri Denemark (7):
  cpu_x86: Use array of models in CPU map
  cpu_x86: Use array of vendors in CPU map
  cpu_x86: Use array of features in CPU map
  cpu_ppc64: Use array of vendors in CPU map
  cpu_ppc64: Use array of models in CPU map
  cpu: Rework CPU map loading
  cpu: Fix documentation of cpuGetModels

 src/cpu/cpu.c                                      |   2 +-
 src/cpu/cpu_map.c                                  |  21 +-
 src/cpu/cpu_map.h                                  |   2 +
 src/cpu/cpu_ppc64.c                                | 216 +++++------
 src/cpu/cpu_x86.c                                  | 395 +++++++++++----------
 tests/cputestdata/x86-baseline-3-expanded.xml      |  62 ++--
 tests/cputestdata/x86-baseline-4-expanded.xml      |  80 ++---
 tests/cputestdata/x86-baseline-4-result.xml        |  18 +-
 tests/cputestdata/x86-baseline-5-expanded.xml      |  80 ++---
 tests/cputestdata/x86-baseline-5-result.xml        |   8 +-
 tests/cputestdata/x86-baseline-6-migratable.xml    |   8 +-
 tests/cputestdata/x86-baseline-6-result.xml        |  10 +-
 .../cputestdata/x86-host+guest,model486-result.xml |  62 ++--
 .../x86-host+guest,models,Penryn-result.xml        |  14 +-
 .../x86-host+guest,models,qemu64-result.xml        |  14 +-
 tests/cputestdata/x86-host+guest,models-result.xml |  14 +-
 tests/cputestdata/x86-host+guest-result.xml        |  10 +-
 ...6-host+host+host-model,models,Penryn-result.xml |  28 +-
 tests/cputestdata/x86-host+min.xml                 |  26 +-
 tests/cputestdata/x86-host+pentium3.xml            |  46 +--
 .../x86-host+strict-force-extra-result.xml         |  28 +-
 ...aswell-noTSX+Haswell,haswell,Haswell-result.xml |   2 +-
 ...+Haswell-noTSX,haswell,Haswell-noTSX-result.xml |   2 +-
 .../x86-host-better+pentium3,core2duo-result.xml   |  32 +-
 .../x86-host-better+pentium3,pentium3-result.xml   |  50 +--
 .../x86-host-better+pentium3-result.xml            |  26 +-
 tests/cputestdata/x86-host-worse+guest-result.xml  |   6 +-
 .../qemuxml2argv-cpu-Haswell2.args                 |   2 +-
 .../qemuxml2argvdata/qemuxml2argv-cpu-exact1.args  |   2 +-
 .../qemuxml2argv-cpu-exact2-nofallback.args        |   2 +-
 .../qemuxml2argvdata/qemuxml2argv-cpu-exact2.args  |   2 +-
 .../qemuxml2argv-cpu-host-model-fallback.args      |   4 +-
 .../qemuxml2argv-cpu-host-model-vendor.args        |   4 +-
 .../qemuxml2argv-cpu-host-model.args               |   4 +-
 .../qemuxml2argv-cpu-minimum1.args                 |   4 +-
 .../qemuxml2argv-cpu-minimum2.args                 |   4 +-
 .../qemuxml2argvdata/qemuxml2argv-cpu-strict1.args |   2 +-
 .../qemuxml2argv-graphics-spice-timeout.args       |   4 +-
 38 files changed, 658 insertions(+), 638 deletions(-)

-- 
2.8.2




More information about the libvir-list mailing list