From: Ian Campbell Subject: Re: [PATCH v3 0/7] enable Cache QoS Monitoring (CQM) feature Date: Fri, 29 Nov 2013 15:29:49 +0000 Message-ID: <1385738989.25763.49.camel@kazak.uk.xensource.com> References: <1385704092-89546-1-git-send-email-dongxiao.xu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1385704092-89546-1-git-send-email-dongxiao.xu@intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: dongxiao.xu@intel.com Cc: keir@xen.org, stefano.stabellini@eu.citrix.com, George Dunlap , andrew.cooper3@citrix.com, Ian.Jackson@eu.citrix.com, xen-devel@lists.xen.org, JBeulich@suse.com, dgdegra@tycho.nsa.gov List-Id: xen-devel@lists.xenproject.org On Fri, 2013-11-29 at 13:48 +0800, dongxiao.xu@intel.com wrote: > From: Dongxiao Xu > > Changes from v2: > - Address comments from Andrew Cooper, including: > * Merging tools stack changes into one patch. > * Reduce the IPI number to one per socket. > * Change structures for CQM data exchange between tools and Xen. > * Misc of format/variable/function name changes. > - Address comments from Konrad Rzeszutek Wilk, including: > * Simplify the error printing logic. > * Add xsm check for the new added hypercalls. > > Changes from v1: > - Address comments from Andrew Cooper, including: > * Change function names, e.g., alloc_cqm_rmid(), system_supports_cqm(), etc. > * Change some structure element order to save packing cost. > * Correct some function's return value. > * Some programming styles change. > * ... > > Future generations of Intel Xeon processor may offer monitoring capability in > each logical processor to measure specific quality-of-service metric, > for example, the Cache QoS Monitoring to get L3 cache occupancy. > Detailed information please refer to Intel SDM chapter 17.14. Is this being proposed for 4.4? I think it is rather late to be adding such stuff. > tools/flask/policy/policy/modules/xen/xen.if | 2 +- > tools/flask/policy/policy/modules/xen/xen.te | 5 +- > tools/libxc/xc_domain.c | 48 ++++++ > tools/libxc/xenctrl.h | 12 ++ > tools/libxl/Makefile | 3 +- > tools/libxl/libxl.h | 5 + > tools/libxl/libxl_create.c | 3 + > tools/libxl/libxl_pqos.c | 108 +++++++++++++ > tools/libxl/libxl_types.idl | 1 + > tools/libxl/xl.h | 3 + > tools/libxl/xl_cmdimpl.c | 138 ++++++++++++++++ > tools/libxl/xl_cmdtable.c | 15 ++ > xen/arch/x86/Makefile | 1 + > xen/arch/x86/cpu/intel.c | 6 + > xen/arch/x86/domain.c | 13 ++ > xen/arch/x86/domctl.c | 40 +++++ > xen/arch/x86/pqos.c | 219 ++++++++++++++++++++++++++ > xen/arch/x86/setup.c | 3 + > xen/arch/x86/sysctl.c | 89 +++++++++++ > xen/common/domctl.c | 5 +- > xen/include/asm-x86/cpufeature.h | 1 + > xen/include/asm-x86/domain.h | 2 + > xen/include/asm-x86/msr-index.h | 5 + > xen/include/asm-x86/pqos.h | 46 ++++++ > xen/include/public/domctl.h | 26 +++ > xen/include/public/sysctl.h | 11 ++ > xen/include/xen/sched.h | 3 + > xen/xsm/flask/hooks.c | 7 + > xen/xsm/flask/policy/access_vectors | 17 +- > 29 files changed, 830 insertions(+), 7 deletions(-) > create mode 100644 tools/libxl/libxl_pqos.c > create mode 100644 xen/arch/x86/pqos.c > create mode 100644 xen/include/asm-x86/pqos.h >