]> xenbits.xensource.com Git - libvirt.git/commit
conf: Add memory bandwidth allocation capability of host
authorBing Niu <bing.niu@intel.com>
Mon, 30 Jul 2018 03:12:41 +0000 (11:12 +0800)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 13 Aug 2018 18:19:41 +0000 (14:19 -0400)
commit7995fecc25c6bc8d0ebb243ea2c8765b076c8974
treef286788dc860e194729645736ffac979c96398be
parent8d6f508e64728f9aaa5a624462ac0da325854cad
conf: Add memory bandwidth allocation capability of host

Add new XML section to report host's memory bandwidth allocation
capability. The format as below example:

 <host>
 .....
   <memory_bandwidth>
     <node id='0' cpus='0-19'>
       <control granularity='10' min ='10' maxAllocs='8'/>
     </node>
   </memory_bandwidth>
</host>

granularity   ---- granularity of memory bandwidth, unit percentage.
min           ---- minimum memory bandwidth allowed, unit percentage.
maxAllocs     ---- maximum memory bandwidth allocation group supported.

Signed-off-by: Bing Niu <bing.niu@intel.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
docs/schemas/capability.rng
src/conf/capabilities.c
src/conf/capabilities.h
src/util/virresctrl.c
src/util/virresctrl.h
tests/vircaps2xmldata/linux-resctrl/resctrl/info/MB/bandwidth_gran [new file with mode: 0644]
tests/vircaps2xmldata/linux-resctrl/resctrl/info/MB/min_bandwidth [new file with mode: 0644]
tests/vircaps2xmldata/linux-resctrl/resctrl/info/MB/num_closids [new file with mode: 0644]
tests/vircaps2xmldata/vircaps-x86_64-resctrl.xml
tests/virresctrldata/resctrl.schemata