Return the current power state of the guest system
#include <qvm/guest.h>
int guest_power_state_current(struct guest_system *gsp, enum guest_power_state_cmd cmd, unsigned base, unsigned nresult, uint64_t *result)
To use this function you must have called guest_power_state_notify_create() to create a structure to hold the guest's power state information, and guest_power_state_notify_register() to register it.
If successful, the number of result elements filled in; otherwise, a negative errno value.