[PATCHv3 0/4] Use nodeGetCPUCount/virNodeGetCPUMap where appropriate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This series concludes the introduction of the virNodeGetCPUMap API
by replacing the usage of virNodeGetInfo for computing the maximum number
of node CPUs with either nodeGetCPUCount or virNodeGetCPUMap.

It's basically a resend of the original 3-patch series plus the
nodeGetCPUCount fix. Event in the light of Peter Krempa's recent
CPU topology fix this series is still relevant.

1/4 is needed to support older kernels
2/4 is not strictly required but is more efficient
3/4 and 4/4 are required for correct function of vcpu pinning calls
of python and virsh clients when talking to libvirtd 1.0.0.

V3 Changes:
- pulled in the nodeGetCPUCount patch for older kernels
- changed commit message of 2/4

V2 Changes:
Rework based on Eric's feedback:
- Use nodeGetCPUCount instead of nodeGetCPUMap
- Avoid code bloat by computing node CPU count in a helper function

Viktor Mihajlovski (4):
  nodeinfo: enable nodeGetCPUCount for older kernels
  qemu, lxc: Change host CPU number detection logic.
  python: Use virNodeGetCPUMap where possible
  virsh: Use virNodeGetCPUMap if possible

 python/libvirt-override.c | 87 ++++++++++++++++++++++++++++-------------------
 src/lxc/lxc_controller.c  |  8 ++---
 src/nodeinfo.c            | 33 +++++++++++++++---
 src/qemu/qemu_driver.c    | 14 +++-----
 src/qemu/qemu_process.c   |  8 ++---
 tools/virsh-domain.c      | 32 ++++++++++++-----
 6 files changed, 114 insertions(+), 68 deletions(-)

-- 
1.7.12.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]