[libvirt] [PATCHv5 17/19] qemu: refactor qemuDomainGetStatsCpu