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