tools: L2 CAT: support set cbm for L2 CAT.
authorYi Sun <yi.y.sun@linux.intel.com>
Tue, 1 Aug 2017 09:05:00 +0000 (11:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 3 Aug 2017 10:39:53 +0000 (12:39 +0200)
commita04f2818cfe050c32dd3050952ed5ccbb54f617c
tree62d92848b5b8bf8fe1145ead6bacca1ae08d24cc
parent54be79e375d93329315eaf40dab1fff7afcb19b1
tools: L2 CAT: support set cbm for L2 CAT.

This patch implements the xl/xc changes to support set CBM
for L2 CAT.

The new level option is introduced to original CAT setting
command in order to set CBM for specified level CAT.
- 'xl psr-cat-set' is updated to set cache capacity bitmasks(CBM)
  for a domain according to input cache level.

root@:~$ xl psr-cat-set -l2 1 0x7f

root@:~$ xl psr-cat-show -l2 1
Socket ID       : 0
Default CBM     : 0xff
   ID                     NAME             CBM
    1                 ubuntu14            0x7f

Signed-off-by: He Chen <he.chen@linux.intel.com>
Signed-off-by: Yi Sun <yi.y.sun@linux.intel.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/xc_psr.c
tools/xl/xl_cmdtable.c
tools/xl/xl_psr.c