]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Export KVM Host Power Management capabilities
authorSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Tue, 22 Nov 2011 03:31:22 +0000 (11:31 +0800)
committerDaniel Veillard <veillard@redhat.com>
Tue, 22 Nov 2011 03:31:22 +0000 (11:31 +0800)
commite352b1640090b06149b13fc8d49cf56f9c31caf8
treec86550e25dad9b76025a67faf0854c8766e4dfb4
parent693d22d417be201c1910c425339fcf677a6c1514
Export KVM Host Power Management capabilities

This patch exports KVM Host Power Management capabilities as XML so that
higher-level systems management software can make use of these features
available in the host.

The script "pm-is-supported" (from pm-utils package) is run to discover if
Suspend-to-RAM (S3) or Suspend-to-Disk (S4) is supported by the host.
If either of them are supported, then a new tag "<power_management>" is
introduced in the XML under the <host> tag.

However in case the query to check for power management features succeeded,
but the host does not support any such feature, then the XML will contain
an empty <power_management/> tag. In the event that the PM query itself
failed, the XML will not contain any "power_management" tag.

To use this, new APIs could be implemented in libvirt to exploit power
management features such as S3/S4.
12 files changed:
AUTHORS
docs/formatcaps.html.in
docs/schemas/capability.rng
include/libvirt/virterror.h
libvirt.spec.in
src/conf/capabilities.c
src/conf/capabilities.h
src/libvirt_private.syms
src/qemu/qemu_capabilities.c
src/util/util.c
src/util/util.h
src/util/virterror.c