[libvirt] [PATCH v4 0/3] add nodeset check in numatune

Chen Fan chen.fan.fnst at cn.fujitsu.com
Thu Oct 30 05:44:16 UTC 2014


when setting elements memnode and nodeset in attribute numatune more
than the host nodes in XML file, VM boot should fail. so add check for
that.

Chen Fan (3):
  bitmap: add virBitmapLastSetBit for finding the last bit position of
    bitmap
  numatune: add check for numatune nodeset range
  virnuma: use virNumaNodesetIsAvailable checking nodeset in
    virNumaSetupMemoryPolicy

 src/conf/numatune_conf.c                           | 28 ++++++++++
 src/conf/numatune_conf.h                           |  1 +
 src/libvirt_private.syms                           |  2 +
 src/qemu/qemu_command.c                            |  4 ++
 src/util/virbitmap.c                               | 45 ++++++++++++++++
 src/util/virbitmap.h                               |  3 ++
 src/util/virnuma.c                                 | 61 +++++++++++++++-------
 src/util/virnuma.h                                 |  1 +
 ...rgv-numatune-static-nodeset-exceed-hostnode.xml | 36 +++++++++++++
 tests/qemuxml2argvmock.c                           |  9 ++++
 tests/qemuxml2argvtest.c                           |  1 +
 tests/virbitmaptest.c                              | 13 ++++-
 12 files changed, 184 insertions(+), 20 deletions(-)
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-numatune-static-nodeset-exceed-hostnode.xml

-- 
1.9.3




More information about the libvir-list mailing list