• G
    qemu: fix an off-by-one error in qemuDomainGetPercpuStats · 09183163
    Guannan Ren 提交于
    The max value of number of cpus to compute(id) should not
    be equal or greater than max cpu number.
    The bug ocurrs when id value is equal to max cpu number which
    leads to the off-by-one error in the following for loop.
    
     # virsh  cpu-stats guest --start 1
     error: Failed to virDomainGetCPUStats()
    
     error: internal error cpuacct parse error
    09183163
qemu_driver.c 473.6 KB