From: Mahmoud Mandour <ma.mandourr@gmail.com>
To: qemu-devel@nongnu.org
Cc: Mahmoud Mandour <ma.mandourr@gmail.com>, alex.bennee@linaro.org
Subject: [PATCH v5 0/2] plugins/cache: multicore cache modelling
Date: Tue, 3 Aug 2021 17:12:59 +0200 [thread overview]
Message-ID: <20210803151301.123581-1-ma.mandourr@gmail.com> (raw)
Hello,
This series introduce multicore cache modelling in contrib/plugins/cache.c
Multi-core cache modelling is handled such that for full-system
emulation, a private L1 cache is maintained to each core available to
the system. For multi-threaded userspace emulation, a static number of
cores is maintained for the overall system, and every memory access go
through one of these, even if the number of fired threads is more than
that number.
v4 -> v5:
1. Reserved a mutex lock for each cache structure; now callbacks generated
by accesses done by different vcpus don't block each other.
2. Used atomic increment to access hashtable entries instead of locking.
3. Renamed mtx to hashtable_lock to reflect its job more explicitly.
4. Dropped the usage of CoreStats, embedded stats in the cache structure.
4. append_stats_line now takes the stats explicitly.
Mahmoud Mandour (2):
plugins/cache: supported multicore cache modelling
docs/devel/tcg-plugins: added cores arg to cache plugin
contrib/plugins/cache.c | 176 +++++++++++++++++++++++++++----------
docs/devel/tcg-plugins.rst | 13 +--
2 files changed, 140 insertions(+), 49 deletions(-)
--
2.25.1
next reply other threads:[~2021-08-03 15:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-03 15:12 Mahmoud Mandour [this message]
2021-08-03 15:13 ` [PATCH v5 1/2] plugins/cache: supported multicore cache modelling Mahmoud Mandour
2021-08-03 15:13 ` [PATCH v5 2/2] docs/devel/tcg-plugins: added cores arg to cache plugin Mahmoud Mandour
2021-08-03 21:10 ` [PATCH v5 0/2] plugins/cache: multicore cache modelling Alex Bennée
2021-08-04 11:54 ` Mahmoud Mandour
2021-08-04 14:47 ` Alex Bennée
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=20210803151301.123581-1-ma.mandourr@gmail.com \
--to=ma.mandourr@gmail.com \
--cc=alex.bennee@linaro.org \
--cc=qemu-devel@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.