[libvirt] [PATCHv6 16/18] qemu: refactor qemuDomainGetStatsCpu