On Thu, Jun 07, 2018 at 03:54:31PM +0200, Martin Kletzander wrote:
Introduce virCache{Info,Bank} as structures describing host cache
information
including the ways they can be managed by resctrl. This has couple of
advantages. First and foremost the virResctrlAllocCreate() is no longer
dependent on a data structure initialized in another part of the code and the
data is automatically fresh. This couldn't be done previously since the code
initializing that was in conf/. And it also makes more sense for functions that
parse sysfs files to be in util/. Last, but not least, the code doesn't
duplicate any data or keep around stale information that needs to be
recalculated anyway.
Signed-off-by: Martin Kletzander <mkletzan(a)redhat.com>
---
src/conf/capabilities.c | 397 +++++++++----------------------
src/conf/capabilities.h | 21 +-
src/libvirt_private.syms | 7 +-
src/qemu/qemu_process.c | 26 +-
src/util/virresctrl.c | 485 ++++++++++++++++++++++++++++++--------
src/util/virresctrl.h | 54 +++--
src/util/virresctrlpriv.h | 4 +-
tests/virresctrltest.c | 18 +-
8 files changed, 560 insertions(+), 452 deletions(-)
I really hope this patch can be remade into a series.
Jano