]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
x86: dynamically get/set CBM for a domain
authorChao Peng <chao.p.peng@linux.intel.com>
Tue, 7 Jul 2015 13:46:39 +0000 (15:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Jul 2015 13:46:39 +0000 (15:46 +0200)
commite3c56e1142c35e17f072d6f3c23678e45cb7a746
tree43cdf0dc26591e7c84d15111cd647d24e96ef15a
parent46af95231c9fa9db3363675dd15f7a42baf351c5
x86: dynamically get/set CBM for a domain

For CAT, COS is maintained in hypervisor only while CBM is exposed to
user space directly to allow getting/setting domain's cache capacity.
For each specified CBM, hypervisor will either use a existed COS which
has the same CBM or allocate a new one if the same CBM is not found. If
the allocation fails because of no enough COS available then error is
returned. The getting/setting are always operated on a specified socket.
For multiple sockets system, the interface may be called several times.

Signed-off-by: Chao Peng <chao.p.peng@linux.intel.com>
Reviewed-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/domctl.c
xen/arch/x86/psr.c
xen/include/asm-x86/msr-index.h
xen/include/asm-x86/psr.h
xen/include/public/domctl.h