So again all the reviews are incorporated. I managed to get my hands on
a machine with CAT support, so I also found out some things that needed
tweaking.
@Eli: I would still appreciate you helping with some testing as I wasn't
able to find a machine with multiple caches (sockets) and I
couldn't test that properly (mainly the fact that full mask needs
to be specified for caches for which we don't want any allocation
to happen).
Martin Kletzander (10):
Rename virResctrlInfo to virResctrlInfoPerCache
util: Add virResctrlInfo
conf: Use virResctrlInfo in capabilities
util: Remove now-unneeded resctrl functions
resctrl: Add functions to work with resctrl allocations
conf: Add support for cputune/cachetune
tests: Add virresctrltest
qemu: Add support for resctrl
docs: Add CAT (resctrl) support into news.xml
tests: Clean up and modify some vircaps2xmldata
docs/formatdomain.html.in | 54 +
docs/news.xml | 9 +
docs/schemas/domaincommon.rng | 32 +
po/POTFILES.in | 1 +
src/Makefile.am | 2 +-
src/conf/capabilities.c | 55 +-
src/conf/capabilities.h | 4 +-
src/conf/domain_conf.c | 295 +++-
src/conf/domain_conf.h | 13 +
src/libvirt_private.syms | 15 +-
src/qemu/qemu_process.c | 60 +-
src/util/virresctrl.c | 1542 ++++++++++++++++++--
src/util/virresctrl.h | 73 +-
src/util/virresctrlpriv.h | 27 +
tests/Makefile.am | 9 +-
tests/genericxml2xmlindata/cachetune-cdp.xml | 36 +
.../cachetune-colliding-allocs.xml | 30 +
.../cachetune-colliding-tunes.xml | 32 +
.../cachetune-colliding-types.xml | 30 +
tests/genericxml2xmlindata/cachetune-small.xml | 29 +
tests/genericxml2xmlindata/cachetune.xml | 33 +
tests/genericxml2xmltest.c | 10 +
.../vircaps2xmldata/linux-resctrl-cdp/resctrl/cpus | 1 -
.../linux-resctrl-cdp/resctrl/tasks | 0
.../linux-resctrl-skx-twocaches/resctrl/schemata | 2 +-
tests/vircaps2xmldata/linux-resctrl/resctrl/cpus | 1 -
.../vircaps2xmldata/linux-resctrl/resctrl/schemata | 2 +-
tests/vircaps2xmldata/linux-resctrl/resctrl/tasks | 0
tests/virresctrldata/resctrl-cdp.schemata | 2 +
.../virresctrldata/resctrl-skx-twocaches.schemata | 1 +
tests/virresctrldata/resctrl-skx.schemata | 1 +
tests/virresctrldata/resctrl.schemata | 1 +
tests/virresctrltest.c | 102 ++
33 files changed, 2363 insertions(+), 141 deletions(-)
create mode 100644 src/util/virresctrlpriv.h
create mode 100644 tests/genericxml2xmlindata/cachetune-cdp.xml
create mode 100644 tests/genericxml2xmlindata/cachetune-colliding-allocs.xml
create mode 100644 tests/genericxml2xmlindata/cachetune-colliding-tunes.xml
create mode 100644 tests/genericxml2xmlindata/cachetune-colliding-types.xml
create mode 100644 tests/genericxml2xmlindata/cachetune-small.xml
create mode 100644 tests/genericxml2xmlindata/cachetune.xml
delete mode 100644 tests/vircaps2xmldata/linux-resctrl-cdp/resctrl/cpus
delete mode 100644 tests/vircaps2xmldata/linux-resctrl-cdp/resctrl/tasks
delete mode 100644 tests/vircaps2xmldata/linux-resctrl/resctrl/cpus
delete mode 100644 tests/vircaps2xmldata/linux-resctrl/resctrl/tasks
create mode 100644 tests/virresctrldata/resctrl-cdp.schemata
create mode 100644 tests/virresctrldata/resctrl-skx-twocaches.schemata
create mode 100644 tests/virresctrldata/resctrl-skx.schemata
create mode 100644 tests/virresctrldata/resctrl.schemata
create mode 100644 tests/virresctrltest.c
--
2.16.1