From: Martin Kletzander Date: Thu, 2 Aug 2012 10:12:50 +0000 (+0200) Subject: Add per-guest S3/S4 state configuration X-Git-Tag: CVE-2012-4423~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09cd8f2ddfa4a39ffa3516329db0b4c4a401a269;p=thirdparty%2Flibvirt.git Add per-guest S3/S4 state configuration There is a new element implemented that can control what ACPI sleeping states will be advertised by BIOS and allowed to be switched to by libvirt. The default keeps defaults on hypervisor, otherwise forces chosen setting. The documentation of the pm element is added as well. --- diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index d8ad54ac85..5cb5a56381 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -960,6 +960,30 @@ domain will be restarted with the same configuration +

Power Management

+ +

+ Since 0.10.2 it is possible to + forcibly enable or disable BIOS advertisements to the guest + OS. (NB: Only qemu driver support) +

+ +
+  ...
+  <pm>
+    <suspend-to-disk enabled='no'/>
+    <suspend-to-ram enabled='yes'/>
+  </pm>
+  ...
+ +
+
pm
+
These elements enable ('yes') or disable ('no') BIOS support + for S3 (suspend-to-disk) and S4 (suspend-to-mem) ACPI sleep + states. If nothing is specified, then the hypervisor will be + left with its default value.
+
+

Hypervisor features

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 60cf33e0f9..abd0e8f8be 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -52,6 +52,9 @@ + + + @@ -2271,6 +2274,40 @@ coredump-restart + + + + + + + + + + + + + + + + + + + + + + + yes + no + + + +