[libvirt] [PATCHv8 15/17] qemu: Refactor qemuDomainGetStatsCpu