Rename PSR sysctl/domctl interfaces and xsm policy to make them be general
authorYi Sun <yi.y.sun@linux.intel.com>
Tue, 24 Oct 2017 09:33:00 +0000 (11:33 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 15 Dec 2017 10:02:43 +0000 (11:02 +0100)
commita58cad2d36d515ee2fa5f163a001e682b6247f55
treebf3ecb8fb4284d0f4bbc4bebb7ea8a14599f9dc6
parent0062b96961c42eff0aa0ff3b00c26e484718c8fd
Rename PSR sysctl/domctl interfaces and xsm policy to make them be general

This patch renames PSR sysctl/domctl interfaces and related xsm policy to
make them be general for all resource allocation features but not only
for CAT. Then, we can resuse the interfaces for all allocation features.

Basically, it changes 'psr_cat_op' to 'psr_alloc', and remove 'CAT_' from some
macros. E.g.:
1. psr_cat_op -> psr_alloc
2. XEN_DOMCTL_psr_cat_op -> XEN_DOMCTL_psr_alloc
3. XEN_SYSCTL_psr_cat_op -> XEN_SYSCTL_psr_alloc
4. XEN_DOMCTL_PSR_CAT_SET_L3_CBM -> XEN_DOMCTL_PSR_SET_L3_CBM
5. XEN_SYSCTL_PSR_CAT_get_l3_info -> XEN_SYSCTL_PSR_get_l3_info

Signed-off-by: Yi Sun <yi.y.sun@linux.intel.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
tools/flask/policy/modules/dom0.te
tools/flask/policy/modules/xen.if
tools/libxc/xc_psr.c
xen/arch/x86/domctl.c
xen/arch/x86/sysctl.c
xen/include/public/domctl.h
xen/include/public/sysctl.h
xen/xsm/flask/hooks.c
xen/xsm/flask/policy/access_vectors