Re: [PATCH 10/10] Move host cache handling from conf/ to util/

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

 



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@xxxxxxxxxx>
---
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

Attachment: signature.asc
Description: Digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux