From: Yi Sun <yi.y.sun@linux.intel.com>
To: xen-devel@lists.xenproject.org
Cc: kevin.tian@intel.com, wei.liu2@citrix.com,
andrew.cooper3@citrix.com, dario.faggioli@citrix.com,
ian.jackson@eu.citrix.com, Yi Sun <yi.y.sun@linux.intel.com>,
mengxu@cis.upenn.edu, jbeulich@suse.com,
chao.p.peng@linux.intel.com, roger.pau@citrix.com
Subject: [PATCH v15 00/23] Enable L2 Cache Allocation Technology & Refactor psr.c
Date: Tue, 1 Aug 2017 16:48:31 +0800 [thread overview]
Message-ID: <1501577334-7431-1-git-send-email-yi.y.sun@linux.intel.com> (raw)
Hi all,
We plan to bring a new PSR (Platform Shared Resource) feature called
Intel L2 Cache Allocation Technology (L2 CAT) to Xen. It has been enabled
in Linux Kernel.
Besides the L2 CAT implementaion, we refactor the psr.c to make it more
flexible and easily to extend to add new features. We abstract the general
operations of all features and encapsulate them into a structure. Then,
the development of new feature is simple to mainly implement these callback
functions.
The patch set can be found at:
https://github.com/yisun-git/xen.git l2_cat_v15
---
Acked and Reviewed list before V15:
The changes in some reviewed patches are small. So I retain the a/r.
a - Acked-by
r - Reviewed-by
r patch 1 - docs: create Cache Allocation Technology (CAT) and Code and
Data Prioritization (CDP) feature document
a patch 2 - x86: move cpuid_count_leaf from cpuid.c to processor.h.
ar patch 3 - x86: refactor psr: remove L3 CAT/CDP codes.
r patch 4 - x86: refactor psr: L3 CAT: implement main data structures, CPU init and free flows.
r patch 5 - x86: refactor psr: L3 CAT: implement Domain init/free and schedule flows.
r patch 6 - x86: refactor psr: L3 CAT: implement get hw info flow.
r patch 7 - x86: refactor psr: L3 CAT: implement get value flow.
r patch 8 - x86: refactor psr: L3 CAT: set value: implement framework.
r patch 9 - x86: refactor psr: L3 CAT: set value: assemble features value array.
r patch 10 - x86: refactor psr: L3 CAT: set value: implement cos finding flow.
r patch 11 - x86: refactor psr: L3 CAT: set value: implement cos id picking flow.
r patch 12 - x86: refactor psr: L3 CAT: set value: implement write msr flow.
r patch 14 - x86: refactor psr: CDP: implement get hw info flow.
r patch 15 - x86: refactor psr: CDP: implement set value callback function.
r patch 16 - x86: L2 CAT: implement CPU init flow.
r patch 17 - x86: L2 CAT: implement get hw info flow.
r patch 18 - x86: L2 CAT: implement get value flow.
r patch 19 - x86: L2 CAT: implement set value flow.
a patch 20 - tools: L2 CAT: support get HW info for L2 CAT.
a patch 21 - tools: L2 CAT: support show cbm for L2 CAT.
a patch 22 - tools: L2 CAT: support set cbm for L2 CAT.
a patch 23 - docs: add L2 CAT description in docs.
---
V15 change list:
Patch 1:
- add 'alt_type' in 'feat_props' structure.
Patch 9:
- remove unnecessary 'else' in 'insert_val_into_array'.
(suggested by Jan Beulich)
Patch 12:
- remove unnecessary 'else' in 'write_psr_msrs'.
(suggested by Jan Beulich)
Patch 13:
- refine process in 'psr_cpu_init' to remove the 'goto'.
(suggested by Jan Beulich)
Patch 16:
- remove a blank.
(suggested by Jan Beulich)
- use designated initializers to initialize the 'cat_feat_name'.
(suggested by Jan Beulich)
Yi Sun (23):
docs: create Cache Allocation Technology (CAT) and Code and Data
Prioritization (CDP) feature document
x86: move cpuid_count_leaf from cpuid.c to processor.h.
x86: refactor psr: remove L3 CAT/CDP codes.
x86: refactor psr: L3 CAT: implement main data structures, CPU init
and free flows.
x86: refactor psr: L3 CAT: implement Domain init/free and schedule
flows.
x86: refactor psr: L3 CAT: implement get hw info flow.
x86: refactor psr: L3 CAT: implement get value flow.
x86: refactor psr: L3 CAT: set value: implement framework.
x86: refactor psr: L3 CAT: set value: assemble features value array.
x86: refactor psr: L3 CAT: set value: implement cos finding flow.
x86: refactor psr: L3 CAT: set value: implement cos id picking flow.
x86: refactor psr: L3 CAT: set value: implement write msr flow.
x86: refactor psr: CDP: implement CPU init flow.
x86: refactor psr: CDP: implement get hw info flow.
x86: refactor psr: CDP: implement set value callback function.
x86: L2 CAT: implement CPU init flow.
x86: L2 CAT: implement get hw info flow.
x86: L2 CAT: implement get value flow.
x86: L2 CAT: implement set value flow.
tools: L2 CAT: support get HW info for L2 CAT.
tools: L2 CAT: support show cbm for L2 CAT.
tools: L2 CAT: support set cbm for L2 CAT.
docs: add L2 CAT description in docs.
docs/features/intel_psr_cat_cdp.pandoc | 471 +++++++++++
docs/man/xl.pod.1.in | 27 +-
docs/misc/xl-psr.markdown | 18 +-
tools/libxc/include/xenctrl.h | 7 +-
tools/libxc/xc_psr.c | 45 +-
tools/libxl/libxl.h | 9 +
tools/libxl/libxl_psr.c | 28 +-
tools/libxl/libxl_types.idl | 1 +
tools/xl/xl_cmdtable.c | 6 +-
tools/xl/xl_psr.c | 168 ++--
xen/arch/x86/cpuid.c | 6 -
xen/arch/x86/domain.c | 3 +-
xen/arch/x86/domctl.c | 51 +-
xen/arch/x86/psr.c | 1409 ++++++++++++++++++++++++--------
xen/arch/x86/sysctl.c | 38 +-
xen/include/asm-x86/msr-index.h | 1 +
xen/include/asm-x86/processor.h | 7 +
xen/include/asm-x86/psr.h | 29 +-
xen/include/public/domctl.h | 2 +
xen/include/public/sysctl.h | 3 +-
20 files changed, 1887 insertions(+), 442 deletions(-)
create mode 100644 docs/features/intel_psr_cat_cdp.pandoc
--
1.9.1
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next reply other threads:[~2017-08-01 9:04 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-01 8:48 Yi Sun [this message]
2017-08-01 8:48 ` [PATCH v15 01/23] docs: create Cache Allocation Technology (CAT) and Code and Data Prioritization (CDP) feature document Yi Sun
2017-08-03 12:26 ` Wei Liu
2017-08-04 4:40 ` Yi Sun
2017-08-04 11:56 ` Wei Liu
2017-08-01 8:48 ` [PATCH v15 02/23] x86: move cpuid_count_leaf from cpuid.c to processor.h Yi Sun
2017-08-01 8:48 ` [PATCH v15 03/23] x86: refactor psr: remove L3 CAT/CDP codes Yi Sun
2017-08-01 8:48 ` [PATCH v15 04/23] x86: refactor psr: L3 CAT: implement main data structures, CPU init and free flows Yi Sun
2017-08-01 8:48 ` [PATCH v15 05/23] x86: refactor psr: L3 CAT: implement Domain init/free and schedule flows Yi Sun
2017-08-01 8:48 ` [PATCH v15 06/23] x86: refactor psr: L3 CAT: implement get hw info flow Yi Sun
2017-08-01 8:48 ` [PATCH v15 07/23] x86: refactor psr: L3 CAT: implement get value flow Yi Sun
2017-08-01 8:48 ` [PATCH v15 08/23] x86: refactor psr: L3 CAT: set value: implement framework Yi Sun
2017-08-04 3:10 ` [PATCH v15.2 " Yi Sun
2017-08-01 8:48 ` [PATCH v15 09/23] x86: refactor psr: L3 CAT: set value: assemble features value array Yi Sun
2017-08-01 8:48 ` [PATCH v15 10/23] x86: refactor psr: L3 CAT: set value: implement cos finding flow Yi Sun
2017-08-01 8:48 ` [PATCH v15 11/23] x86: refactor psr: L3 CAT: set value: implement cos id picking flow Yi Sun
2017-08-01 8:48 ` [PATCH v15 12/23] x86: refactor psr: L3 CAT: set value: implement write msr flow Yi Sun
2017-08-01 8:48 ` [PATCH v15 13/23] x86: refactor psr: CDP: implement CPU init flow Yi Sun
2017-08-01 9:20 ` Wei Liu
2017-08-02 12:35 ` Jan Beulich
2017-08-02 15:11 ` Yi Sun
2017-08-02 15:19 ` Jan Beulich
2017-08-03 2:10 ` [PATCH v15.1 " Yi Sun
2017-08-03 9:37 ` Jan Beulich
2017-08-04 3:23 ` Yi Sun
2017-08-04 5:42 ` Jan Beulich
2017-08-04 7:42 ` Yi Sun
2017-08-04 3:08 ` [PATCH v15.2 " Yi Sun
2017-08-01 8:48 ` [PATCH v15 14/23] x86: refactor psr: CDP: implement get hw info flow Yi Sun
2017-08-01 8:48 ` [PATCH v15 15/23] x86: refactor psr: CDP: implement set value callback function Yi Sun
2017-08-01 8:48 ` [PATCH v15 16/23] x86: L2 CAT: implement CPU init flow Yi Sun
2017-08-01 8:48 ` [PATCH v15 17/23] x86: L2 CAT: implement get hw info flow Yi Sun
2017-08-01 8:48 ` [PATCH v15 18/23] x86: L2 CAT: implement get value flow Yi Sun
2017-08-01 8:48 ` [PATCH v15 19/23] x86: L2 CAT: implement set " Yi Sun
2017-08-01 8:48 ` [PATCH v15 20/23] tools: L2 CAT: support get HW info for L2 CAT Yi Sun
2017-08-01 8:48 ` [PATCH v15 21/23] tools: L2 CAT: support show cbm " Yi Sun
2017-08-01 8:48 ` [PATCH v15 22/23] tools: L2 CAT: support set " Yi Sun
2017-08-01 8:48 ` [PATCH v15 23/23] docs: add L2 CAT description in docs Yi Sun
2017-08-03 15:37 ` [PATCH v15 00/23] Enable L2 Cache Allocation Technology & Refactor psr.c Andrew Cooper
2017-08-03 22:50 ` Boris Ostrovsky
2017-08-04 2:21 ` Yi Sun
2017-08-04 4:36 ` Yi Sun
2017-08-04 13:58 ` Yi Sun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1501577334-7431-1-git-send-email-yi.y.sun@linux.intel.com \
--to=yi.y.sun@linux.intel.com \
--cc=andrew.cooper3@citrix.com \
--cc=chao.p.peng@linux.intel.com \
--cc=dario.faggioli@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jbeulich@suse.com \
--cc=kevin.tian@intel.com \
--cc=mengxu@cis.upenn.edu \
--cc=roger.pau@citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).