util: Add MBA check to virResctrlInfoGetCache
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 <34467639bd6a847b4565e75ecae35c7ac3dc1b95@intel.com>
Reviewed-by: John Ferlan <87558058f6f829e5ec976c8ef960720af4ff9c7d@redhat.com>

fabianfreyer/libvirt,jfehlig/libvirt,olafhering/libvirt,olafhering/libvirt,zippy2/libvirt,jardasgit/libvirt,eskultety/libvirt,crobinso/libvirt,nertpinx/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,jardasgit/libvirt,crobinso/libvirt,nertpinx/libvirt,libvirt/libvirt,jfehlig/libvirt,olafhering/libvirt,zippy2/libvirt,andreabolognani/libvirt,libvirt/libvirt,fabianfreyer/libvirt,zippy2/libvirt,jfehlig/libvirt,eskultety/libvirt,crobinso/libvirt,libvirt/libvirt,jardasgit/libvirt,andreabolognani/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,eskultety/libvirt,eskultety/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,jardasgit/libvirt,crobinso/libvirt,olafhering/libvirt,libvirt/libvirt,jfehlig/libvirt,eskultety/libvirt,zippy2/libvirt,fabianfreyer/libvirt,jardasgit/libvirt