[libvirt] [PATCH] Add NUMA memory information to virsh capabilities output.

Dusty Mabe dustymabe at gmail.com
Thu Feb 14 17:52:37 UTC 2013


Hi,

This is a follow up to a previous proposed patch that added NUMA memory and CPU thread siblings information to virsh capabilities outout (https://www.redhat.com/archives/libvir-list/2012-November/msg00449.html)

Since in a recent commit the thread siblings information was added (http://libvirt.org/git/?p=libvirt.git;a=commit;h=828820e2d). I have modified my patch to just add the NUMA memory information. An example of the output from virsh capabilities looks like
the following text:


    <topology>
      <cells num='2'>
        <cell id='0'>
          <memory unit='KiB'>67073420</memory>
          <cpus num='16'>
            <cpu id='0' socket_id='0' core_id='0' siblings='0,16'/>
            <cpu id='1' socket_id='0' core_id='1' siblings='1,17'/>
            ...
            ...
          </cpus>
        </cell>


Dusty Mabe

Dusty Mabe (1):
  Add NUMA memory information to virsh capabilities output.

 docs/schemas/capability.rng               | 10 ++++
 src/conf/capabilities.c                   |  8 +++
 src/conf/capabilities.h                   |  2 +
 src/nodeinfo.c                            | 64 +++++++++++++++++++++-
 src/test/test_driver.c                    |  2 +-
 src/xen/xend_internal.c                   |  2 +-
 tests/capabilityschemadata/caps-test3.xml | 88 +++++++++++++++++++++++++++++++
 7 files changed, 173 insertions(+), 3 deletions(-)
 create mode 100644 tests/capabilityschemadata/caps-test3.xml

-- 
1.7.11.7




More information about the libvir-list mailing list