Re: [PATCH 2/2] qemu: Implement qemuDomainGetStatsCpu fallback for qemu:///session

2022-09-06 Thread Daniel P . Berrangé
On Mon, Sep 05, 2022 at 09:40:57AM +0200, Michal Privoznik wrote: > For domains started under session URI, we don't set up CGroups > (well, how could we since we're not running as root anyways). > Nevertheless, fetching CPU statistics exits early because of > lacking cpuacct controller. But with

[PATCH 2/2] qemu: Implement qemuDomainGetStatsCpu fallback for qemu:///session

2022-09-05 Thread Michal Privoznik
For domains started under session URI, we don't set up CGroups (well, how could we since we're not running as root anyways). Nevertheless, fetching CPU statistics exits early because of lacking cpuacct controller. But with recent extension to virProcessGetStatInfo() we can get the values we need