examples/power: add checks around hypervisor
authorDavid Hunt <david.hunt@intel.com>
Wed, 17 Oct 2018 13:05:25 +0000 (14:05 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 26 Oct 2018 08:47:57 +0000 (10:47 +0200)
commite0207366b173c78a92603ed2519a0e5eb04b0dc0
tree104d7940bb23d5d190d520e2495e383462e5ed09
parenta137d012a0dd7be982367687ea6cd10de6f12c69
examples/power: add checks around hypervisor

Allow vm_power_manager to run without requiring qemu to be present
on the machine. This will be required for instances where the JSON
interface is used for commands and polices, without any VMs present.
A use case for this is a container enviromnent.

Signed-off-by: David Hunt <david.hunt@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
examples/vm_power_manager/channel_manager.c