On Thu, Apr 04, 2019 at 11:59:50 +0200, Bjoern Walk wrote:
Daniel P. Berrangé <berrange(a)redhat.com> [2019-04-04, 09:49AM
+0100]:
> On Thu, Apr 04, 2019 at 10:01:27AM +0200, Bjoern Walk wrote:
[...]
> Why not just have virDomainGetPanicInfo() and "virsh
dompanicinfo"
Do we want to later add an additional public API function per state that
implements any additional information?
Any elaboration on the additional information you'd want to report?
We have
https://libvirt.org/html/libvirt-libvirt-domain.html#virConnectGetAllDoma...
which is able to report any information including state info
(VIR_DOMAIN_STATS_STATE) using typed parameters. The API works even for
inactive VMs so should be usable in this case.