x86: support enable CDP by boot parameter and add get CDP status
authorHe Chen <he.chen@linux.intel.com>
Wed, 14 Oct 2015 10:44:40 +0000 (12:44 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 14 Oct 2015 10:44:40 +0000 (12:44 +0200)
commit56b9a5130f08cca7c3a5853c87d62a2dd9b7ebc1
treedb68a88b949a011b0b32f3f4e3fc3ded940cb1d7
parented740187a5d8a7fcec2116c410d850f1b54a0603
x86: support enable CDP by boot parameter and add get CDP status

Add boot parameter `psr=cdp` to enable CDP at boot time.
Intel Code/Data Prioritization (CDP) feature is based on CAT. Note that
cos_max would be half when CDP is on. struct psr_cat_cbm is extended to
support CDP operation. Extend psr_get_cat_l3_info sysctl to get CDP
status.

Signed-off-by: He Chen <he.chen@linux.intel.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Chao Peng <chao.p.peng@linux.intel.com>
docs/misc/xen-command-line.markdown
xen/arch/x86/psr.c
xen/arch/x86/sysctl.c
xen/include/asm-x86/msr-index.h
xen/include/asm-x86/psr.h
xen/include/public/sysctl.h