[libvirt] [PATCH 00/24] Move all NUMA related configuration into one structure

Peter Krempa pkrempa at redhat.com
Mon Feb 16 18:51:48 UTC 2015


Due to historical madne^Wreasons the NUMA configuration is split between
/domain/cpu and /domain/numatune. Internally the data was also split into two
places. We can't do anything about the external representation but we certainly
can store all the definitions in one place internally.

This series does that.

Peter Krempa (24):
  conf: Move numatune_conf to numa_conf
  conf: Move NUMA cell parsing code from cpu conf to numa conf
  conf: Refactor virDomainNumaDefCPUParseXML
  conf: numa: Don't duplicate NUMA cell cpumask
  conf: Move NUMA cell formatter to numa_conf
  conf: numa: Rename virDomainNumatune to virDomainNuma
  conf: Move enum virMemAccess to the NUMA code and rename it
  conf: numa: Recalculate rather than remember total NUMA cpu count
  conf: numa: Improve error message in case a numa node doesn't have cpus
  conf: numa: Reformat virDomainNumatuneParseXML
  conf: numa: Refactor logic in virDomainNumatuneParseXML
  conf: numa: Format <numatune> XML only if necessary
  conf: Separate helper for creating domain objects
  conf: Allocate domain definition with the new helper
  conf: numa: Always allocate the NUMA config
  conf: numa: Avoid re-allocation of the NUMA conf
  numa: conf: Tweak parameters of virDomainNumatuneSet
  conf: numa: Don't pass double pointer to virDomainNumatuneParseXML
  qemu: command: Unify retrieval of NUMA cell count in qemuBuildNumaArgStr
  conf: numa: Add helper to get guest NUMA node count and refactor users
  conf: numa: Add accesor for the NUMA node cpu mask
  conf: numa: Add accessor to NUMA node's memory access mode
  conf: numa: Add setter/getter for NUMA node memory size
  conf: Move all NUMA configuration to virDomainNuma

 po/POTFILES.in                                     |   2 +-
 src/Makefile.am                                    |   2 +-
 src/conf/cpu_conf.c                                | 151 +-------
 src/conf/cpu_conf.h                                |  25 +-
 src/conf/domain_conf.c                             |  59 ++-
 src/conf/domain_conf.h                             |  11 +-
 src/conf/{numatune_conf.c => numa_conf.c}          | 429 +++++++++++++++------
 src/conf/{numatune_conf.h => numa_conf.h}          |  77 ++--
 src/cpu/cpu.c                                      |   2 +-
 src/libvirt_private.syms                           |  13 +-
 src/lxc/lxc_cgroup.c                               |   4 +-
 src/lxc/lxc_controller.c                           |   6 +-
 src/lxc/lxc_native.c                               |   4 +-
 src/openvz/openvz_conf.c                           |   2 +-
 src/parallels/parallels_sdk.c                      |   4 +-
 src/phyp/phyp_driver.c                             |   2 +-
 src/qemu/qemu_cgroup.c                             |  12 +-
 src/qemu/qemu_command.c                            |  52 +--
 src/qemu/qemu_driver.c                             |  20 +-
 src/qemu/qemu_process.c                            |   4 +-
 src/vbox/vbox_common.c                             |   8 +-
 src/vmx/vmx.c                                      |   2 +-
 src/xen/xen_hypervisor.c                           |   8 +-
 src/xen/xend_internal.c                            |   4 +-
 src/xen/xm_internal.c                              |   4 +-
 src/xenconfig/xen_sxpr.c                           |   2 +-
 src/xenconfig/xen_xl.c                             |   2 +-
 src/xenconfig/xen_xm.c                             |   2 +-
 tests/cputest.c                                    |   2 +-
 tests/openvzutilstest.c                            |   2 +-
 .../qemuxml2argv-numatune-memnode.xml              |   2 +-
 .../qemuxml2xmlout-numatune-memnode.xml            |   2 +-
 tests/securityselinuxtest.c                        |   2 +-
 tests/testutilsqemu.c                              |   4 -
 34 files changed, 503 insertions(+), 424 deletions(-)
 rename src/conf/{numatune_conf.c => numa_conf.c} (60%)
 rename src/conf/{numatune_conf.h => numa_conf.h} (50%)

-- 
2.2.2




More information about the libvir-list mailing list