• E
    nodeinfo: improve probing node cpu bitmap · 2f4c5338
    Eric Blake 提交于
    Callers should not need to know what the name of the file to
    be read in the Linux-specific version of nodeGetCPUmap;
    furthermore, qemu cares about online cpus, not present cpus,
    when determining which cpus to skip.
    
    While at it, I fixed the fact that we were computing the maximum
    online cpu id by doing a slow iteration, when what we really want
    to know is the max available cpu.
    
    * src/nodeinfo.h (nodeGetCPUmap): Rename...
    (nodeGetCPUBitmap): ...and simplify signature.
    * src/nodeinfo.c (linuxParseCPUmax): New function.
    (linuxParseCPUmap): Simplify and alter signature.
    (nodeGetCPUBitmap): Change implementation.
    * src/libvirt_private.syms (nodeinfo.h): Reflect rename.
    * src/qemu/qemu_driver.c (qemuDomainGetPercpuStats): Update
    caller.
    2f4c5338
libvirt_private.syms 40.2 KB