]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Add MBA check to virResctrlInfoGetCache
authorBing Niu <bing.niu@intel.com>
Mon, 30 Jul 2018 03:12:29 +0000 (11:12 +0800)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 13 Aug 2018 18:19:41 +0000 (14:19 -0400)
commit5aae2b3968c3e474e288cff68547f7aedac86921
tree2d01326ecc6ebc021e84ee0628a7ce03d69a9888
parenta24da791b8d489600807158c45451012ae1a8270
util: Add MBA check to virResctrlInfoGetCache

If we have some membw_info data, then we need to calculate the number
of MBA controllers on the system. The value cannot be obtained from a
direct query to the RDT kernel module, but it is the same as the last
level cache value which is calculated by traversing the cache hierarchy
of host(/sys/bus/cpu/devices/cpuX/cache/).

Signed-off-by: Bing Niu <bing.niu@intel.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/util/virresctrl.c