[PATCHv2 0/3] Use 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 calls to virNodeGetInfo used only for the purpose
of computing the maximum number of node CPUs (which has the potential
to yield the incorrect number).
Most prominently, with patch 3/3 the output of virsh vcpuinfo will
now be correct for domains on hosts with offline CPUs

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 (3):
  qemu, lxc: Change host CPU detection logic.
  python: Use virNodeGetCPUMap where possible
  virsh: Use virNodeGetCPUMap if possible

 python/libvirt-override.c | 87 ++++++++++++++++++++++++++++-------------------
 src/lxc/lxc_controller.c  |  8 ++---
 src/qemu/qemu_driver.c    | 14 +++-----
 src/qemu/qemu_process.c   |  8 ++---
 tools/virsh-domain.c      | 32 ++++++++++++-----
 5 files changed, 86 insertions(+), 63 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]