[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH v4 0/3] Per-guest S3/S4 configuration



There is a way to tell qemu how (not) to advertise S3/S4 ACPI sleep
state capability to the guest OS. This series includes the capability
to set this in the XML and also covers all the handling from qemu
point of view including checking for the support, parameter parsing,
command building, checking before sending the signals through guest
agent and also tests and documentation.
--
Even though the patches were half-acked, I rather send them again with
the changes made after Michal's suggestions.

v4:
 - Changed the XML config to subelements
 - Minor fixes and optimalizations

v3:
 - Option names are change according to Eric and Doug
 - Added docs (formatdomain)

v2:
 - Modified the patch to reflect danpb's notes (according to qemu
   people the setting the disable_s[34] parameter to 0/1 ensures that
   the states will be enabled/disabled respectively)

Martin Kletzander (3):
  Add per-guest S3/S4 state configuration
  qemu: Add support for S3/S4 state configuration
  tests: Add tests for qemu S3/S4 state configuration

 docs/formatdomain.html.in                          | 24 +++++++++
 docs/schemas/domaincommon.rng                      | 39 ++++++++++++++
 src/conf/domain_conf.c                             | 50 +++++++++++++++++
 src/conf/domain_conf.h                             | 15 ++++++
 src/libvirt_private.syms                           |  2 +
 src/qemu/qemu_capabilities.c                       |  7 +++
 src/qemu/qemu_capabilities.h                       |  2 +
 src/qemu/qemu_command.c                            | 62 ++++++++++++++++++++++
 src/qemu/qemu_driver.c                             | 17 ++++++
 tests/qemuargv2xmltest.c                           |  3 ++
 .../qemuxml2argv-misc-disable-s3.args              |  4 ++
 .../qemuxml2argv-misc-disable-s3.xml               | 29 ++++++++++
 .../qemuxml2argv-misc-disable-suspends.args        |  4 ++
 .../qemuxml2argv-misc-disable-suspends.xml         | 30 +++++++++++
 .../qemuxml2argv-misc-enable-s4.args               |  4 ++
 .../qemuxml2argv-misc-enable-s4.xml                | 29 ++++++++++
 tests/qemuxml2argvtest.c                           |  4 ++
 tests/qemuxml2xmltest.c                            |  3 ++
 18 files changed, 328 insertions(+)
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-misc-disable-s3.args
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-misc-disable-s3.xml
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-misc-disable-suspends.args
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-misc-disable-suspends.xml
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-misc-enable-s4.args
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-misc-enable-s4.xml

--
1.7.12


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]