Re: [libvirt] [PATCH 2/2] virPerfEventIsEnabled: Don't crash on shut off domains

2016-06-03 Thread Peter Krempa
On Fri, Jun 03, 2016 at 11:02:52 +0200, Michal Privoznik wrote: > So imagine the following. You connect read only to a daemon and > try to fetch stats for a shut off domain, e.g.: > > virsh -r domstats $dom > > but all of a sudden, virsh instead of printing the stats throws > the following

[libvirt] [PATCH 2/2] virPerfEventIsEnabled: Don't crash on shut off domains

2016-06-03 Thread Michal Privoznik
So imagine the following. You connect read only to a daemon and try to fetch stats for a shut off domain, e.g.: virsh -r domstats $dom but all of a sudden, virsh instead of printing the stats throws the following error at you: error: Disconnected from qemu:///system due to I/O error