Skip to content

plugins/cache: L2 cache modelling and a minor leak fix

Mahmoud Mandour qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5plugins/cache: freed heap-allocated mutexescontrib/plugins/cache.c+3 -01 reply
2/5plugins/cache: implement unified L2 cache emulationcontrib/plugins/cache.c+175 -811 reply
3/5plugins/cache: split command line arguments into name and valuecontrib/plugins/cache.c+30 -271 reply
4/5plugins/cache: make L2 emulation optional through argscontrib/plugins/cache.c+54 -220 replies
5/5docs/tcg-plugins: add L2 arguments to cache docsdocs/devel/tcg-plugins.rst+19 -30 replies

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchAlex Bennée
1/5R-b
2/5R-b
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] plugins/cache: L2 cache modelling and a minor leak fix

Hello,

This series implements a simple L2 unified per-core cache emulation, the L2 cache is not enabled by default and is only enabled on specifying so using the plugin arguments. L2 cache is only accessed if L1 does not contain the wanted block. If a miss occur in L1, the block is "fetched" to L1, and then L2 is interrogated. This effectively mean that on a cache miss, we bring the data to all the cache hierarchy, which is quite reasonable.

Note: Some +80-column lines are left as is, since they're all 81~83 cols and I thought that it's so important to break them since breaking a line usually looks ugly when not sufficiently long(?) LMK if I need to fix this :)

Mahmoud Mandour (5):
plugins/cache: freed heap-allocated mutexes plugins/cache: implement unified L2 cache emulation plugins/cache: split command line arguments into name and value plugins/cache: make L2 emulation optional through args docs/tcg-plugins: add L2 arguments to cache docs

 contrib/plugins/cache.c    | 318 ++++++++++++++++++++++++++-----------
 docs/devel/tcg-plugins.rst |  22 ++-
 2 files changed, 244 insertions(+), 96 deletions(-)
Signature · 1 line
2.25.1