]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: add energytune to domain XML
authorJedrzej Wasiukiewicz <jedrzej.wasiukiewicz@intel.com>
Thu, 14 May 2026 14:41:04 +0000 (16:41 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 15 May 2026 12:02:17 +0000 (14:02 +0200)
commit615a7bb898f66d32bb375c57a214fe7334188d4e
treed58298fa31aae4ba6bfce1a5edae413e766d8741
parent6389d2987e421e14969ab652a0c2bccc92fdb09d
conf: add energytune to domain XML

The new XML element is <energytune> under <cputune> following earlier pattern for
resctrl features (cachetune, memorytune). Energytune doesn't currently support
the "tuning" part, only monitoring. I added it as energytune for consistency with
cache and memory features, keeping all resctrl handling under cputune. This also makes
sense with current resctrl architecture - all monitoring groups are part of an
allocation group.

Changes:
 - Added <energytune> parsing to domain_conf.c
 - Added schema definition in domaincommon.rng
 - Documented the element in formatdomain.rst
 - Added energytune test

Signed-off-by: Jedrzej Wasiukiewicz <jedrzej.wasiukiewicz@intel.com>
Signed-off-by: Christopher M. Cantalupo <christopher.m.cantalupo@intel.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/formatdomain.rst
src/conf/domain_conf.c
src/conf/schemas/domaincommon.rng
tests/genericxml2xmlindata/energytune.xml [new file with mode: 0644]
tests/genericxml2xmltest.c