From 09cd8f2ddfa4a39ffa3516329db0b4c4a401a269 Mon Sep 17 00:00:00 2001 From: Martin Kletzander Date: Thu, 2 Aug 2012 12:12:50 +0200 Subject: [PATCH] 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. --- docs/formatdomain.html.in | 24 +++++++++++++++++ docs/schemas/domaincommon.rng | 37 ++++++++++++++++++++++++++ src/conf/domain_conf.c | 50 +++++++++++++++++++++++++++++++++++ src/conf/domain_conf.h | 15 +++++++++++ src/libvirt_private.syms | 2 ++ 5 files changed, 128 insertions(+) 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 + + + +