[libvirt] [PATCHv4 17/18] qemu: refactor qemuDomainGetStatsCpu