On Wed, Jan 24, 2018 at 10:57:05PM +0100, Martin Kletzander wrote:
On Wed, Jan 24, 2018 at 02:51:46PM +0100, Pavel Hrdina wrote:
On Tue, Jan 23, 2018 at 07:05:14PM +0100, Martin Kletzander wrote:
With this commit we finally have a way to read and manipulate basic resctrl settings. Locking is done only on exposed functions that read/write from/to resctrlfs. Not in functions that are exposed in virresctrlpriv.h as those are only supposed to be used from tests.
More information about how resctrl works:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Docu...
Signed-off-by: Martin Kletzander <mkletzan@redhat.com> --- src/Makefile.am | 2 +- src/libvirt_private.syms | 10 + src/util/virresctrl.c | 1211 ++++++++++++++++++++++++++++++++++++++++++++- src/util/virresctrl.h | 49 ++ src/util/virresctrlpriv.h | 27 + 5 files changed, 1288 insertions(+), 11 deletions(-) create mode 100644 src/util/virresctrlpriv.h
With the fixes included Reviewed-by: Pavel Hrdina <phrdina@redhat.com>