Skip to content

Enable L2 Cache Allocation Technology & Refactor psr.c

Yi Sun xen-devel 16 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v15 Latest23 patches 16 repliesIn review
  2. v1423 patches 5 repliesSuperseded
  3. v1323 patches 18 repliesSuperseded
Earlier versions · 13
VersionPostedPatchesRepliesStatus
v1223 patches43 repliesSuperseded
v1123 patches50 repliesSuperseded
v1025 patches81 repliesSuperseded
v925 patches79 repliesSuperseded
v824 patches97 repliesSuperseded
v724 patches2 repliesSuperseded
v624 patches12 repliesSuperseded
v5 posting 2/224 patches30 repliesSuperseded
v5 posting 1/224 patches5 repliesSuperseded
v424 patches54 repliesSuperseded
v315 patches26 repliesSuperseded
v23 patches15 repliesSuperseded
v13 patches21 repliesSuperseded

Patches in v15 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/23docs: create Cache Allocation Technology (CAT) and Code and Data Prioritization (CDP) feature documentdocs/features/intel_psr_cat_cdp.pandoc+471 -03 replies
2/23x86: move cpuid_count_leaf from cpuid.c to processor.h.xen/arch/x86/cpuid.c xen/include/asm-x86/processor.h+7 -60 replies
3/23x86: refactor psr: remove L3 CAT/CDP codes.xen/arch/x86/psr.c+5 -4650 replies
4/23x86: refactor psr: L3 CAT: implement main data structures, CPU init and free flows.xen/arch/x86/psr.c xen/include/asm-x86/psr.h+289 -60 replies
5/23x86: refactor psr: L3 CAT: implement Domain init/free and schedule flows.xen/arch/x86/domain.c xen/arch/x86/psr.c xen/include/asm-x86/psr.h+65 -70 replies
6/23x86: refactor psr: L3 CAT: implement get hw info flow.xen/arch/x86/psr.c xen/arch/x86/sysctl.c xen/include/asm-x86/psr.h+104 -120 replies
7/23x86: refactor psr: L3 CAT: implement get value flow.xen/arch/x86/domctl.c xen/arch/x86/psr.c xen/include/asm-x86/psr.h+61 -140 replies
8/23x86: refactor psr: L3 CAT: set value: implement framework.xen/arch/x86/domctl.c xen/arch/x86/psr.c xen/include/asm-x86/psr.h+242 -200 replies
8/23x86: refactor psr: L3 CAT: set value: implement framework.xen/arch/x86/domctl.c xen/arch/x86/psr.c xen/include/asm-x86/psr.h+240 -200 replies
9/23x86: refactor psr: L3 CAT: set value: assemble features value array.xen/arch/x86/psr.c+133 -20 replies
10/23x86: refactor psr: L3 CAT: set value: implement cos finding flow.xen/arch/x86/psr.c+100 -00 replies
11/23x86: refactor psr: L3 CAT: set value: implement cos id picking flow.xen/arch/x86/psr.c+80 -10 replies
12/23x86: refactor psr: L3 CAT: set value: implement write msr flow.xen/arch/x86/psr.c+78 -10 replies
13/23x86: refactor psr: CDP: implement CPU init flow.xen/arch/x86/psr.c+83 -64 replies
13/23x86: refactor psr: CDP: implement CPU init flow.xen/arch/x86/psr.c+77 -64 replies
13/23x86: refactor psr: CDP: implement CPU init flow.xen/arch/x86/psr.c+75 -60 replies
14/23x86: refactor psr: CDP: implement get hw info flow.xen/arch/x86/psr.c+20 -10 replies
15/23x86: refactor psr: CDP: implement set value callback function.xen/arch/x86/psr.c+17 -30 replies
16/23x86: L2 CAT: implement CPU init flow.xen/arch/x86/psr.c xen/include/asm-x86/msr-index.h xen/include/asm-x86/psr.h+48 -30 replies
17/23x86: L2 CAT: implement get hw info flow.xen/arch/x86/psr.c xen/arch/x86/sysctl.c xen/include/public/sysctl.h+26 -20 replies
18/23x86: L2 CAT: implement get value flow.xen/arch/x86/domctl.c xen/include/public/domctl.h+8 -00 replies
19/23x86: L2 CAT: implement set value flow.xen/arch/x86/domctl.c xen/arch/x86/psr.c xen/include/public/domctl.h+8 -00 replies
20/23tools: L2 CAT: support get HW info for L2 CAT.tools/libxc/include/xenctrl.h tools/libxc/xc_psr.c tools/libxl/libxl.h +5 more+111 -380 replies
21/23tools: L2 CAT: support show cbm for L2 CAT.tools/libxc/include/xenctrl.h tools/libxc/xc_psr.c tools/xl/xl_cmdtable.c +1 more+63 -290 replies
22/23tools: L2 CAT: support set cbm for L2 CAT.tools/libxc/xc_psr.c tools/xl/xl_cmdtable.c tools/xl/xl_psr.c+28 -110 replies
23/23docs: add L2 CAT description in docs.docs/man/xl.pod.1.in docs/misc/xl-psr.markdown+35 -100 replies

Reviews trailers per patch

All 26 patches have a Reviewed-by or Acked-by.

PatchKonrad Rzeszutek WilkWei LiuJan Beulich
1/23R-b R-b
2/23A-b
3/23R-b R-b A-b
4/23R-b
5/23R-b
6/23R-b
7/23R-b
8/23R-b R-b
8/23R-b R-b
9/23R-b
10/23R-b
11/23R-b
12/23R-b
13/23R-b
13/23R-b
13/23R-b
14/23R-b
15/23R-b
16/23R-b
17/23R-b
18/23R-b
19/23R-b
20/23A-b A-b
21/23A-b
22/23A-b
23/23A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v15 thread

Cover letter [PATCH v15 00/23] Enable L2 Cache Allocation Technology & Refactor psr.c

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
Signature · 7 lines
1.9.1


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel