[Xen-devel] [PATCH] tools/misc: add AVX512 vpopcntdq in xen-cpuid.c

2017-01-16 Thread He Chen
Add AVX512 vpopcntdq information in xen-cpuid.c Signed-off-by: He Chen <he.c...@linux.intel.com> --- tools/misc/xen-cpuid.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/misc/xen-cpuid.c b/tools/misc/xen-cpuid.c index 5d66e94..106be0f 100644 --- a/tools/mi

[Xen-devel] [PATCH v2] x86/cpuid: Add AVX512_VPOPCNTDQ support

2017-01-10 Thread He Chen
AVX512_VPOPCNTDQ: Vector POPCNT instructions for word and qwords. variable precision. Signed-off-by: He Chen <he.c...@linux.intel.com> --- Changes from v1: renanme VPOPCNTDQ to AVX512_VPOPCNTDQ. --- xen/include/public/arch-x86/cpufeatureset.h | 1 + xen/tools/gen-cp

Re: [Xen-devel] [PATCH] x86/cpuid: Add AVX512_VPOPCNTDQ support

2017-01-10 Thread He Chen
On Tue, Jan 10, 2017 at 01:49:06AM -0700, Jan Beulich wrote: > >>> On 10.01.17 at 07:34, wrote: > > --- a/xen/include/public/arch-x86/cpufeatureset.h > > +++ b/xen/include/public/arch-x86/cpufeatureset.h > > @@ -226,6 +226,7 @@ XEN_CPUFEATURE(PREFETCHWT1, 6*32+ 0) /*A

[Xen-devel] [PATCH] x86/cpuid: Add AVX512_VPOPCNTDQ support

2017-01-09 Thread He Chen
AVX512_VPOPCNTDQ: Vector POPCNT instructions for word and qwords. variable precision. Signed-off-by: He Chen <he.c...@linux.intel.com> --- xen/include/public/arch-x86/cpufeatureset.h | 1 + xen/tools/gen-cpuid.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-)

[Xen-devel] [PATCH v2] x86/cpuid: Add AVX512_4VNNIW and AVX512_4FMAPS support

2016-11-20 Thread He Chen
Add two new AVX512 subfeatures support for guest. AVX512_4VNNIW: Vector instructions for deep learning enhanced word variable precision. AVX512_4FMAPS: Vector instructions for deep learning floating-point single precision. Signed-off-by: Luwei Kang <luwei.k...@intel.com> Signed-off-by: H

[Xen-devel] [PATCH] x86/cpuid: Add AVX512_4VNNIW and AVX512_4FMAPS support

2016-11-17 Thread He Chen
Add two new AVX512 subfeatures support for guest. AVX512_4VNNIW: Vector instructions for deep learning enhanced word variable precision. AVX512_4FMAPS: Vector instructions for deep learning floating-point single precision. Signed-off-by: Luwei Kang <luwei.k...@intel.com> Signed-off-by: H

[Xen-devel] [PATCH v8] xen/sm{e, a}p: allow disabling sm{e, a}p for Xen itself

2016-10-19 Thread He Chen
HVM. In this way, 32-bit PV guest will not suffer SMEP/SMAP security issue. Users can choose whether open SMEP/SMAP for Xen itself, especially when they are going to run 32-bit PV guests. Signed-off-by: He Chen <he.c...@linux.intel.

Re: [Xen-devel] [PATCH v7] xen/sm{e, a}p: allow disabling sm{e, a}p for Xen itself

2016-10-10 Thread He Chen
On Mon, Oct 10, 2016 at 06:16:41AM -0600, Jan Beulich wrote: > >>> On 09.10.16 at 10:20, wrote: > > Changes in v7: > > * bugfix: fix the bug that this patch doesn't work on machine without SMAP. > > * test: This patch has not been tested (on 32-bit PV environment). > >

[Xen-devel] [PATCH v7] xen/sm{e, a}p: allow disabling sm{e, a}p for Xen itself

2016-10-09 Thread He Chen
EP/SMAP for Xen hypervisor while enable them for HVM. In this way, 32-bit PV guest will not suffer SMEP/SMAP security issue. Users can choose whether open SMEP/SMAP for Xen itself, especially when they are going to run 32-bit PV guests. Signed-off-by: He Chen <he.c...@linux.intel.com> --- Chan

Re: [Xen-devel] [PATCH v6] xen/sm{e, a}p: allow disabling sm{e, a}p for Xen itself

2016-09-20 Thread He Chen
On Tue, Sep 20, 2016 at 12:53:32AM -0600, Jan Beulich wrote: > >>> On 20.09.16 at 04:29, wrote: > > Sorry for the late response, I saw the this patch was merged but soon > > got reverted, and the revert message says this patch is still buggy. > > > > I would be most

Re: [Xen-devel] [PATCH v6] xen/sm{e, a}p: allow disabling sm{e, a}p for Xen itself

2016-09-19 Thread He Chen
Hi Jan, Sorry for the late response, I saw the this patch was merged but soon got reverted, and the revert message says this patch is still buggy. I would be most grateful if you would point out the buggy part of this patch and the reason why revert it. Thanks, -He

[Xen-devel] [PATCH v6] xen/sm{e, a}p: allow disabling sm{e, a}p for Xen itself

2016-09-04 Thread He Chen
HVM. In this way, 32-bit PV guest will not suffer SMEP/SMAP security issue. Users can choose whether open SMEP/SMAP for Xen itself, especially when they are going to run 32-bit PV guests. Signed-off-by: He Chen <he.c...@linux.intel.com> --- Changes in v6: * fix sm{e,a}p parameters parser flow

[Xen-devel] [PATCH v5] xen/sm{e, a}p: allow disabling sm{e, a}p for Xen itself

2016-09-02 Thread He Chen
HVM. In this way, 32-bit PV guest will not suffer SMEP/SMAP security issue. Users can choose whether open SMEP/SMAP for Xen itself, especially when they are going to run 32-bit PV guests. Signed-off-by: He Chen <he.c...@linux.intel.com> --- Changes in v5: * refine sm{e,a}p parameters parser

[Xen-devel] [PATCH v4] xen/sm{e, a}p: allow disabling sm{e, a}p for Xen itself

2016-08-31 Thread He Chen
HVM. In this way, 32-bit PV guest will not suffer SMEP/SMAP security issue. Users can choose whether open SMEP/SMAP for Xen itself, especially when they are going to run 32-bit PV guests. Signed-off-by: He Chen <he.c...@linux.intel.com> --- Changes in v4: * introduce 2 new synthetic fea

Re: [Xen-devel] [PATCH v3] xen: support enabling SMEP/SMAP for HVM only

2016-08-28 Thread He Chen
On Wed, Aug 24, 2016 at 04:01:53AM -0600, Jan Beulich wrote: > >>> On 19.08.16 at 12:20, wrote: > > Changes in v3: > > * Fix boot options. > > * Fix CR4 & mmu_cr4_features operations. > > * Disable SMEP/SMAP for Dom0. > > * Commit message refinement. > > Several of my

[Xen-devel] [PATCH v3] xen: support enabling SMEP/SMAP for HVM only

2016-08-19 Thread He Chen
attempt to access user address although SMEP/SMAP is close for PV guests already. This patch is going to support enabling SMEP/SMAP for HVM but disabling them for Xen hypervisor. Users can choose whether opening them for Xen, especially when they are going to run 32-bit PV guests. Signed-off-by: He Chen

Re: [Xen-devel] [PATCH V2] xen: support enabling SMEP/SMAP for HVM only

2016-08-12 Thread He Chen
On Thu, Aug 11, 2016 at 07:14:06AM -0600, Jan Beulich wrote: > >>> On 11.08.16 at 11:17, wrote: > > @@ -1404,12 +1438,20 @@ void __init noreturn __start_xen(unsigned long > > mbi_p) > > if ( !opt_smep ) > > setup_clear_cpu_cap(X86_FEATURE_SMEP); > > if

[Xen-devel] [PATCH V2] xen: support enabling SMEP/SMAP for HVM only

2016-08-11 Thread He Chen
Enhance "skaj...@intel.com>mep" and "smap" command line options to support enabling SMEP or SMAP for HVM only with allowing "hvm" as a value. Signed-off-by: He Chen <he.c...@linux.intel.com> --- Changes in V2: * Allow "hvm" as a value to "sm

[Xen-devel] [PATCH V2] xen: support enabling SMEP/SMAP for HVM only

2016-08-10 Thread He Chen
Enhance "smep" and "smap" command line options to support enabling SMEP or SMAP for HVM only with allowing "hvm" as a value. Signed-off-by: He Chen <he.c...@linux.intel.com> --- Changes in V2: * Allow "hvm" as a value to "smep" and "sm

[Xen-devel] [PATCH] xen: enable/disable SMAP/SMEP for Xen itself

2016-08-09 Thread He Chen
SMAP/SMEP may affect the 32-bit pv guests. Users can determine whether turn SMAP/SMEP on for Xen hyperviosr when running 32-bit pv guests. Signed-off-by: He Chen <he.c...@linux.intel.com> --- docs/misc/xen-command-line.markdown | 14 ++ xen/arch/x86/setup.c

[Xen-devel] [PATCH] solve SMAP/SMEP issues with 32-bit pv guests

2016-08-09 Thread He Chen
environment to test this patch, I would really appreciate it if someone could help verify this patch :) He Chen (1): xen: enable/disable SMAP/SMEP for Xen itself docs/misc/xen-command-line.markdown | 14 ++ xen/arch/x86/setup.c| 12 ++-- 2 files changed, 24 insert

Re: [Xen-devel] [RFC Design Doc] Intel L2 Cache Allocation Technology (L2 CAT) Feature enabling

2016-05-16 Thread He Chen
per-vcpu basis could be interesting, and that's even > more the case if we get to do L2 stuff, but there are two few RMIDs > available for such a configuration to be really useful. > > > Xen programs different capacity bitmaps into IA32_L2_QOS_MASK_0 ... > > IA32_L2_QOS_MASK_n, and the CLO

Re: [Xen-devel] [RFC Design Doc] Intel L2 Cache Allocation Technology (L2 CAT) Feature enabling

2016-05-13 Thread He Chen
On Thu, May 12, 2016 at 04:05:36AM -0600, Jan Beulich wrote: > >>> On 12.05.16 at 11:40, wrote: > > % Intel L2 Cache Allocation Technology (L2 CAT) Feature > > % Revision 1.0 > > > > \clearpage > > > > Hi all, > > > > We plan to bring new PQoS feature called Intel L2

[Xen-devel] [RFC Design Doc] Intel L2 Cache Allocation Technology (L2 CAT) Feature enabling

2016-05-12 Thread He Chen
% Intel L2 Cache Allocation Technology (L2 CAT) Feature % Revision 1.0 \clearpage Hi all, We plan to bring new PQoS feature called Intel L2 Cache Allocation Technology (L2 CAT) to Xen. L2 CAT is supported on Atom codename Goldmont and beyond. “Big-core” Xeon does not support L2 CAT in current

[Xen-devel] [RFC Design Doc] Intel L2 Cache Allocation Technology (L2 CAT) Feature enabling

2016-05-12 Thread He Chen
% Intel L2 Cache Allocation Technology (L2 CAT) Feature % Revision 1.0 \clearpage Hi all, We plan to bring new PQoS feature called Intel L2 Cache Allocation Technology (L2 CAT) to Xen. L2 CAT is supported on Atom codename Goldmont and beyond. “Big-core” Xeon does not support L2 CAT in current

[Xen-devel] [PATCH v8] tools & docs: add tools and docs support for Intel CDP

2015-10-19 Thread He Chen
This is the xl/xc changes to support Intel Code/Data Prioritization. CAT xl commands to set/get CBMs are extended to support CDP. Add new CDP options with CAT commands in xl interface man page. Add description of CDP in xl-psr.markdown. Signed-off-by: He Chen <he.c...@linux.intel.com> Re

[Xen-devel] [PATCH v8] detect and initialize CDP (Code/Data Prioritization) feature

2015-10-19 Thread He Chen
rm. To make this patchset better, any comment or suggestion is welcomed, I would really appreciate it. Thanks. He Chen (1): tools & docs: add tools and docs support for Intel CDP docs/man/xl.pod.1 | 15 ++ docs/misc/xl-psr.markdown | 53

Re: [Xen-devel] [PATCH v7 2/3] x86: add domctl cmd to set/get CDP code/data CBM

2015-10-16 Thread He Chen
On Thu, Oct 15, 2015 at 09:47:37AM -0600, Jan Beulich wrote: > > Ah, yes, in cases like this it should always be followed by return > (or whatever else is suitable). Sorry for not having spotted this > during review. > Sorry for this bug. Is it proper to fix this bug by just adding a return

[Xen-devel] [PATCH v2 for staging] fix compile error

2015-10-16 Thread He Chen
In non-debug build ASSERT_UNREACHABLE is nop and some compilers will complain that cbm_code/cbm_data may be used uninitialized in function psr_set_l3_cbm. Add return after ASSERT_UNREACHABLE to fix it. Signed-off-by: He Chen <he.c...@linux.intel.com> --- Changes in v2: Sorry for mistake in

[Xen-devel] [PATCH for staging] fix compile error

2015-10-16 Thread He Chen
In non-debug build ASSERT_UNREACHABLE is nop and some compilers will complain that cbm_code/cbm_data may be used uninitialized in function psr_set_l3_cbm. Add return after ASSERT_UNREACHABLE to fix it. Signed-off-by: He Chen <he.c...@linux.intel.com> --- xen/arch/x86/psr.c | 1 + 1 file c

[Xen-devel] [PATCH v7 0/3] detect and initialize CDP (Code/Data Prioritization) feature

2015-10-13 Thread He Chen
patch. This v7 patchset has been tested on Intel Broadwell server platform. To make this patchset better, any comment or suggestion is welcomed, I would really appreciate it. Thanks. He Chen (3): x86: Support enable CDP by boot parameter and add get CDP status x86: add domctl cmd to set/

[Xen-devel] [PATCH v7 2/3] x86: add domctl cmd to set/get CDP code/data CBM

2015-10-13 Thread He Chen
ion CBMs are extended to support CDP. Signed-off-by: He Chen <he.c...@linux.intel.com> Reviewed-by: Andrew Cooper <andrew.coop...@citrix.com> Reviewed-by: Chao Peng <chao.p.p...@linux.intel.com> --- Changes in v7: * amend function find_cos and pick_avail_cos to ignore reference cou

[Xen-devel] [PATCH v7 1/3] x86: Support enable CDP by boot parameter and add get CDP status

2015-10-13 Thread He Chen
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

[Xen-devel] [PATCH v7 3/3] tools & docs: add tools and docs support for Intel CDP

2015-10-13 Thread He Chen
This is the xl/xc changes to support Intel Code/Data Prioritization. CAT xl commands to set/get CBMs are extended to support CDP. Add new CDP options with CAT commands in xl interface man page. Add description of CDP in xl-psr.markdown. Signed-off-by: He Chen <he.c...@linux.intel.com> --- C

[Xen-devel] [PATCH v6 0/3] detect and initialize CDP (Code/Data Prioritization) feature

2015-10-07 Thread He Chen
ould really appreciate it. Thanks. He Chen (3): x86: Support enable CDP by boot parameter and add get CDP status x86: add domctl cmd to set/get CDP code/data CBM tools & docs: add tools and docs support for Intel CDP docs/man/xl.pod.1 | 15 +++ docs/misc/xen-command-line.ma

[Xen-devel] [PATCH v6 3/3] tools & docs: add tools and docs support for Intel CDP

2015-10-07 Thread He Chen
This is the xl/xc changes to support Intel Code/Data Prioritization. CAT xl commands to set/get CBMs are extended to support CDP. Add new CDP options with CAT commands in xl interface man page. Add description of CDP in xl-psr.markdown. Signed-off-by: He Chen <he.c...@linux.intel.com> --- C

[Xen-devel] [PATCH v6 1/3] x86: Support enable CDP by boot parameter and add get CDP status

2015-10-07 Thread He Chen
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

[Xen-devel] [PATCH v5 1/3] x86: Support enable CDP by boot parameter and add get CDP status

2015-09-28 Thread He Chen
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

[Xen-devel] [PATCH v5 2/3] x86: add domctl cmd to set/get CDP code/data CBM

2015-09-28 Thread He Chen
ion CBMs are extended to support CDP. Signed-off-by: He Chen <he.c...@linux.intel.com> Reviewed-by: Andrew Cooper <andrew.coop...@citrix.com> --- Changes in v5: * replace -EINVAL with -ENXIO when setting code/data CBM on CDP disabled. --- xen/arch/x86/domctl.c | 32 +++-

[Xen-devel] [PATCH v5 0/3] detect and initialize CDP (Code/Data Prioritization) feature

2015-09-28 Thread He Chen
changes, please see in each patch. This v5 patchset has been tested on Intel Broadwell server platform. To make this patchset better, any comment or suggestion is welcomed, I would really appreciate it. Thanks. He Chen (3): x86: Support enable CDP by boot parameter and add get CDP status x86:

[Xen-devel] [PATCH v5 3/3] tools & docs: add tools and docs support for Intel CDP

2015-09-28 Thread He Chen
This is the xl/xc changes to support Intel Code/Data Prioritization. CAT xl commands to set/get CBMs are extended to support CDP. Add new CDP options with CAT commands in xl interface man page. Add description of CDP in xl-psr.markdown. Signed-off-by: He Chen <he.c...@linux.intel.com> --- C

Re: [Xen-devel] [PATCH v4 3/4] tools: add tools support for Intel CDP

2015-09-25 Thread He Chen
On Thu, Sep 24, 2015 at 12:07:27PM +0100, Ian Campbell wrote: > On Thu, 2015-09-17 at 17:35 +0800, He Chen wrote: > > @@ -8410,20 +8415,29 @@ static void psr_cat_print_one_domain_cbm(uint32_t > > domid, uint32_t socketid) > > printf("%5d%25s", domid, domain_n

Re: [Xen-devel] [PATCH v4 3/4] tools: add tools support for Intel CDP

2015-09-25 Thread He Chen
On Thu, Sep 24, 2015 at 12:22:47PM +0100, Ian Campbell wrote: > On Thu, 2015-09-24 at 12:07 +0100, Ian Campbell wrote: > > @@ -8517,8 +8535,19 @@ int main_psr_cat_cbm_set(int argc, char **argv) > > > libxl_string_list_dispose(_list); > > > free(value); > > > break; > > >

Re: [Xen-devel] [PATCH v4 4/4] docs: add document to introduce CDP command

2015-09-25 Thread He Chen
On Thu, Sep 24, 2015 at 12:22:02PM +0100, Ian Campbell wrote: > On Thu, 2015-09-17 at 17:35 +0800, He Chen wrote: > > Add new CDP options with CAT commands in xl interface man page. > > Add description of CDP in xl-psr.markdown. > > It would have been fine to include this

Re: [Xen-devel] [PATCH v4 3/4] tools: add tools support for Intel CDP

2015-09-25 Thread He Chen
> Quoting the relevant bits of code for clarity: > libxl_psr_cbm_type type = LIBXL_PSR_CBM_TYPE_L3_CBM; > ... > case 'd': > type = LIBXL_PSR_CBM_TYPE_L3_DATA; > opt_data = 1; > break; > case 'c': > type = LIBXL_PSR_CBM_TYPE_L3_CODE; >

Re: [Xen-devel] [PATCH v4 4/4] docs: add document to introduce CDP command

2015-09-25 Thread He Chen
On Fri, Sep 25, 2015 at 10:58:58AM +0100, Ian Campbell wrote: > On Fri, 2015-09-25 at 17:29 +0800, He Chen wrote: > > On Thu, Sep 24, 2015 at 12:22:02PM +0100, Ian Campbell wrote: > > > On Thu, 2015-09-17 at 17:35 +0800, He Chen wrote: > > > > Add new CDP options wit

[Xen-devel] [PATCH v4 3/4] tools: add tools support for Intel CDP

2015-09-17 Thread He Chen
This is the xl/xc changes to support Intel Code/Data Prioritization. CAT xl commands to set/get CBMs are extended to support CDP. Signed-off-by: He Chen <he.c...@linux.intel.com> --- tools/libxc/include/xenctrl.h | 7 +-- tools/libxc/xc_psr.c | 17 ++- tools

[Xen-devel] [PATCH v4 1/4] x86: Support enable CDP by boot parameter and add get CDP status

2015-09-17 Thread He Chen
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

[Xen-devel] [PATCH v4 0/4] detect and initialize CDP (Code/Data Prioritization) feature

2015-09-17 Thread He Chen
re in Xen based on CAT code, and extends CBM operation functions to support CDP. For all the changes, please see in each patch. This v4 patchset has been tested on Intel Broadwell server platform. To make this patchset better, any comment or suggestion is welcomed, I would really appreciate it. Tha

[Xen-devel] [PATCH v4 4/4] docs: add document to introduce CDP command

2015-09-17 Thread He Chen
Add new CDP options with CAT commands in xl interface man page. Add description of CDP in xl-psr.markdown. Signed-off-by: He Chen <he.c...@linux.intel.com> --- docs/man/xl.pod.1 | 14 ++ docs/misc/xl-psr.markdown | 44 +++- 2

[Xen-devel] [PATCH v4 2/4] x86: add domctl cmd to set/get CDP code/data CBM

2015-09-17 Thread He Chen
ion CBMs are extended to support CDP. Signed-off-by: He Chen <he.c...@linux.intel.com> --- xen/arch/x86/domctl.c | 32 - xen/arch/x86/psr.c | 165 ++-- xen/include/asm-x86/psr.h | 12 +++- xen/include/public/domctl.h | 4 ++ 4

[Xen-devel] [PATCH v3 0/4] Intel Code and Data Prioritization (CDP) feature enabling

2015-09-13 Thread He Chen
iate it. Thanks He Chen (4): x86: Support enable CDP by boot parameter and add get CDP status x86: add domctl cmd to set/get CDP code/data CBM tools: add tools support for Intel CDP docs: add document to introduce CDP command docs/man/xl.pod.1 | 14 +++ docs/misc

[Xen-devel] [PATCH v3 2/4] x86: add domctl cmd to set/get CDP code/data CBM

2015-09-13 Thread He Chen
peration CBMs are extended to support CDP. Signed-off-by: He Chen <he.c...@linux.intel.com> --- xen/arch/x86/domctl.c | 32 - xen/arch/x86/psr.c | 166 ++-- xen/include/asm-x86/psr.h | 12 +++- xen/include/public/domctl.h |

[Xen-devel] [PATCH v3 3/4] tools: add tools support for Intel CDP

2015-09-13 Thread He Chen
This is the xl/xc changes to support Intel Code/Data Prioritization. CAT xl commands to set/get CBMs are extended to support CDP. Signed-off-by: He Chen <he.c...@linux.intel.com> --- tools/libxc/include/xenctrl.h | 7 +-- tools/libxc/xc_psr.c | 17 ++- tools

[Xen-devel] [PATCH v3 1/4] x86: Support enable CDP by boot parameter and add get CDP status

2015-09-13 Thread He Chen
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

[Xen-devel] [PATCH v3 4/4] docs: add document to introduce CDP command

2015-09-13 Thread He Chen
Add new CDP option with CAT commands in xl interface man page. Add description of CDP in xl-psr.markdown. Signed-off-by: He Chen <he.c...@linux.intel.com> --- docs/man/xl.pod.1 | 14 ++ docs/misc/xl-psr.markdown | 42 +- 2 files c

Re: [Xen-devel] [PATCH v2 1/4] x86: Support enable CDP by boot parameter and add get CDP status

2015-09-09 Thread He Chen
On Wed, Sep 09, 2015 at 03:04:35PM +0800, Chao Peng wrote: > On Wed, Sep 09, 2015 at 01:16:45PM +0800, He Chen wrote: > > Intel Code/Data Prioritization(CDP) feature is based on CAT. cdp_enabled > > is added to CAT socket info to indicate CDP is on or off on the socket, > > no

Re: [Xen-devel] [PATCH v2 3/4] tools: add tools support for Intel CDP

2015-09-09 Thread He Chen
On Wed, Sep 09, 2015 at 03:32:11PM +0800, Chao Peng wrote: > On Wed, Sep 09, 2015 at 01:16:47PM +0800, He Chen wrote: > > This is the xl/xc changes to support Intel Code/Data Prioritization. > > CAT xl commands to set/get CBMs are extended to support CDP. > > > > S

[Xen-devel] [PATCH v2 1/4] x86: Support enable CDP by boot parameter and add get CDP status

2015-09-08 Thread He Chen
status. Signed-off-by: He Chen <he.c...@linux.intel.com> --- xen/arch/x86/psr.c | 84 ++--- xen/arch/x86/sysctl.c | 5 ++- xen/include/asm-x86/msr-index.h | 3 ++ xen/include/asm-x86/psr.h | 11 +- xen/include/public/sy

[Xen-devel] [PATCH v2 4/4] docs: add document to introduce CDP command

2015-09-08 Thread He Chen
Add CDP command in xl interface man page and add description of CDP in xl-psr.markdown. Signed-off-by: He Chen <he.c...@linux.intel.com> --- docs/man/xl.pod.1 | 14 ++ docs/misc/xl-psr.markdown | 44 +++- 2 files changed, 53 inse

[Xen-devel] [PATCH v2 0/4] Intel Code/Data Prioritization(CDP) feature enabling

2015-09-08 Thread He Chen
, any comment or suggestion is welcomed, I would really appreciate it. Thanks He Chen (4): x86: Support enable CDP by boot parameter and add get CDP status x86: add domctl cmd to set/get CDP code/data CBM tools: add tools support for Intel CDP docs: add document to introduce CDP command docs

[Xen-devel] [PATCH v2 3/4] tools: add tools support for Intel CDP

2015-09-08 Thread He Chen
This is the xl/xc changes to support Intel Code/Data Prioritization. CAT xl commands to set/get CBMs are extended to support CDP. Signed-off-by: He Chen <he.c...@linux.intel.com> --- tools/libxc/include/xenctrl.h | 7 -- tools/libxc/xc_psr.c | 17 +- tools/libxl/l

[Xen-devel] [PATCH v2 2/4] x86: add domctl cmd to set/get CDP code/data CBM

2015-09-08 Thread He Chen
peration CBMs are extended to support CDP. Signed-off-by: He Chen <he.c...@linux.intel.com> --- xen/arch/x86/domctl.c | 32 - xen/arch/x86/psr.c | 163 ++-- xen/include/asm-x86/psr.h | 12 +++- xen/include/public/domctl.h |

Re: [Xen-devel] [PATCH 3/5] x86: add domctl cmd to set/get CDP code/data CBM

2015-09-06 Thread He Chen
On Wed, Sep 02, 2015 at 12:59:07PM +0100, Andrew Cooper wrote: > On 02/09/15 09:28, He Chen wrote: > > CDP extends CAT and provides the capacity to control L3 code & data > > cache. With CDP, one COS correspond to two CMBs(code & data). cbm_type > > is added to supp

Re: [Xen-devel] [PATCH 0/5] Intel Code/Data Prioritization(CDP) feature enabling

2015-09-06 Thread He Chen
On Wed, Sep 02, 2015 at 01:08:33PM +0100, Andrew Cooper wrote: > On 02/09/15 09:27, He Chen wrote: > > Hi all, > > > > Code/Data Prioritization(CDP) is offered in Intel Broadwell and later server > > platforms, which is an extension of CAT. CDP enables isolation and

[Xen-devel] [PATCH 2/5] x86: Support enable/disable CDP dynamically and get CDP status

2015-09-02 Thread He Chen
. Signed-off-by: He Chen <he.c...@linux.intel.com> --- xen/arch/x86/psr.c | 164 xen/arch/x86/sysctl.c | 9 ++- xen/include/asm-x86/psr.h | 10 ++- xen/include/public/sysctl.h | 5 ++ 4 files changed, 174 insertions(+), 14 del

[Xen-devel] [PATCH 5/5] docs: add document to introduce CDP command

2015-09-02 Thread He Chen
Add CDP command in xl interface man page and add description of CDP in xl-psr.markdown. Signed-off-by: He Chen <he.c...@linux.intel.com> --- docs/man/xl.pod.1 | 22 +++ docs/misc/xl-psr.markdown | 56 ++- 2 files chang

[Xen-devel] [PATCH 0/5] Intel Code/Data Prioritization(CDP) feature enabling

2015-09-02 Thread He Chen
to enable/disable CDP dynamically. For all the changes, please see in each patch. This patchset has been tested on Intel Broadwell server platform. To make this patchset better, any comment or suggestion is welcomed, I would really appreciate it. Thanks He Chen (5): x86: detect Intel CDP feature

[Xen-devel] [PATCH 1/5] x86: detect Intel CDP feature

2015-09-02 Thread He Chen
if CDP is supported in the platform. Signed-off-by: He Chen <he.c...@linux.intel.com> --- xen/arch/x86/psr.c| 13 - xen/include/asm-x86/psr.h | 4 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/psr.c b/xen/arch/x86/psr.c index c0daa2e..b

[Xen-devel] [PATCH 4/5] tools: add tools support for Intel CDP

2015-09-02 Thread He Chen
This is the xc/xl changes to support Intel Code/Data Prioritization. Two new xl commands are introduced to enable/disable CDP dynamically, and CAT xl commands to set/get CBMs are extended to support CDP. Signed-off-by: He Chen <he.c...@linux.intel.com> --- tools/libxc/include/xenctrl.

[Xen-devel] [PATCH 3/5] x86: add domctl cmd to set/get CDP code/data CBM

2015-09-02 Thread He Chen
peration CBMs are extended to support CDP. Signed-off-by: He Chen <he.c...@linux.intel.com> --- xen/arch/x86/domctl.c | 33 +- xen/arch/x86/psr.c | 142 xen/include/asm-x86/psr.h | 12 +++- xen/include/public/domctl.h |