[PATCH 0/4] conf: Deduplicate NUMA distance code

Michal Privoznik posted 4 patches 2 years, 11 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/cover.1621524173.git.mprivozn@redhat.com
src/conf/capabilities.c        | 60 ++++++++++++++------------------
src/conf/capabilities.h        | 13 +++----
src/conf/numa_conf.c           | 63 ++++++++++++++++++----------------
src/conf/numa_conf.h           | 10 ++++++
src/conf/virconftypes.h        |  2 --
src/libvirt_private.syms       |  1 +
src/libxl/libxl_capabilities.c | 20 +++++------
7 files changed, 83 insertions(+), 86 deletions(-)
[PATCH 0/4] conf: Deduplicate NUMA distance code
Posted by Michal Privoznik 2 years, 11 months ago
While the number of saved lines is not that great, it prepares the code
for what I'm working on - exposing HMAT in capabilities XML. My idea is
to reuse XML formatters there too so that mgmt app can just take
whatever we produce in capabilities XML and paste it into domain XML.

Michal Prívozník (4):
  capabilities: Rename siblings to distances
  numa_conf: Rename virDomainNumaDistance to virNumaDistance
  numa_conf: Expose virNumaDistance formatter
  conf: Deduplicate NUMA distance code

 src/conf/capabilities.c        | 60 ++++++++++++++------------------
 src/conf/capabilities.h        | 13 +++----
 src/conf/numa_conf.c           | 63 ++++++++++++++++++----------------
 src/conf/numa_conf.h           | 10 ++++++
 src/conf/virconftypes.h        |  2 --
 src/libvirt_private.syms       |  1 +
 src/libxl/libxl_capabilities.c | 20 +++++------
 7 files changed, 83 insertions(+), 86 deletions(-)

-- 
2.26.3