From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chao Peng Subject: [PATCH 0/6] enable Cache Allocation Technology (CAT) for VMs Date: Fri, 13 Mar 2015 18:13:19 +0800 Message-ID: <1426241605-4114-1-git-send-email-chao.p.peng@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: keir@xen.org, Ian.Campbell@citrix.com, stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com, Ian.Jackson@eu.citrix.com, will.auld@intel.com, JBeulich@suse.com, wei.liu2@citrix.com, dgdegra@tycho.nsa.gov List-Id: xen-devel@lists.xenproject.org This patch serial enable the new Cache Allocation Technology (CAT) feature found in Intel Broadwell and later server platform. On XEN implementation, CAT is used to control cache allocation on VM basis. Detail hardware spec can be found in section 17.15 of the Intel SDM [1]. The design for XEN can be found at [2]. [1] Intel SDM (http://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-software-developer-manual-325462.pdf) [2] CAT design for XEN( http://lists.xen.org/archives/html/xen-devel/2014-12/msg01382.html) Chao Peng (6): x86: detect and initialize Intel CAT feature x86: add support for COS/CBM manangement X86: improve psr scheduling code x86: add scheduling support for Intel CAT xsm: add CAT related xsm policies tools: add tools support for Intel CAT docs/misc/xen-command-line.markdown | 15 +- tools/flask/policy/policy/modules/xen/xen.if | 2 +- tools/flask/policy/policy/modules/xen/xen.te | 4 +- tools/libxc/include/xenctrl.h | 15 + tools/libxc/xc_psr.c | 74 +++++ tools/libxl/libxl.h | 18 ++ tools/libxl/libxl_psr.c | 106 ++++++- tools/libxl/libxl_types.idl | 4 + tools/libxl/xl.h | 4 + tools/libxl/xl_cmdimpl.c | 225 +++++++++++++- tools/libxl/xl_cmdtable.c | 13 + xen/arch/x86/domain.c | 13 +- xen/arch/x86/domctl.c | 18 ++ xen/arch/x86/psr.c | 436 +++++++++++++++++++++++++-- xen/arch/x86/sysctl.c | 20 ++ xen/include/asm-x86/cpufeature.h | 1 + xen/include/asm-x86/domain.h | 5 +- xen/include/asm-x86/msr-index.h | 1 + xen/include/asm-x86/psr.h | 11 +- xen/include/public/domctl.h | 12 + xen/include/public/sysctl.h | 16 + xen/xsm/flask/hooks.c | 6 + xen/xsm/flask/policy/access_vectors | 6 + 23 files changed, 977 insertions(+), 48 deletions(-) -- 1.9.1