From: Beata Michalska <beata.michalska@linaro.org>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, quintela@redhat.com,
richard.henderson@linaro.org, dgilbert@redhat.com,
shameerali.kolothum.thodi@huawei.com, eric.auger@redhat.com,
qemu-arm@nongnu.org, pbonzini@redhat.com, alex.bennee@linaro.org
Subject: [PATCH v2 0/4] target/arm: Support for Data Cache Clean up to PoP
Date: Tue, 5 Nov 2019 23:40:56 +0000 [thread overview]
Message-ID: <20191105234100.22052-1-beata.michalska@linaro.org> (raw)
ARMv8.2 introduced support for Data Cache Clean instructions to PoP
(point-of-persistence) and PoDP (point-of-deep-persistence):
ARMv8.2-DCCVAP & ARMv8.2-DCCVADP respectively.
This patch set adds support for emulating both, though there is no
distinction between the two points: the PoDP is assumed to represent
the same point of persistence as PoP. Case there is no such point specified
for the considered memory system both will fall back to the DV CVAC inst
(clean up to the point of coherency).
The changes introduced include adding probe_read for validating read memory
access to allow verification for mandatory read access for both cache
clean instructions, along with support for writeback for requested memory
regions through msync, if one is available, based otherwise on fsyncdata.
As currently the virt platform is missing support for NVDIMM,
the changes have been tested with [1] & [2]
[1] https://patchwork.kernel.org/cover/10830237/
[2] https://patchwork.kernel.org/project/qemu-devel/list/?series=159441
v2:
- Moved the msync into a qemu wrapper with
CONFIG_POSIX switch + additional comments
- Fixed length alignment
- Dropped treating the DC CVAP/CVADP as special case
and moved those to conditional registration
- Dropped needless locking for grabbing mem region
Beata Michalska (4):
tcg: cputlb: Add probe_read
Memory: Enable writeback for given memory region
migration: ram: Switch to ram block writeback
target/arm: Add support for DC CVAP & DC CVADP ins
exec.c | 43 +++++++++++++++++++++++++++++++++++++
include/exec/exec-all.h | 6 ++++++
include/exec/memory.h | 6 ++++++
include/exec/ram_addr.h | 8 +++++++
include/qemu/cutils.h | 1 +
linux-user/elfload.c | 2 ++
memory.c | 12 +++++++++++
migration/ram.c | 5 +----
target/arm/cpu.h | 10 +++++++++
target/arm/cpu64.c | 1 +
target/arm/helper.c | 56 +++++++++++++++++++++++++++++++++++++++++++++++++
util/cutils.c | 47 +++++++++++++++++++++++++++++++++++++++++
12 files changed, 193 insertions(+), 4 deletions(-)
--
2.7.4
next reply other threads:[~2019-11-05 23:43 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-05 23:40 Beata Michalska [this message]
2019-11-05 23:40 ` [PATCH v2 1/4] tcg: cputlb: Add probe_read Beata Michalska
2019-11-05 23:40 ` [PATCH v2 2/4] Memory: Enable writeback for given memory region Beata Michalska
2019-11-06 12:19 ` Richard Henderson
2019-11-07 14:41 ` Beata Michalska
2019-11-07 16:57 ` Alex Bennée
2019-11-07 16:59 ` Peter Maydell
2019-11-05 23:40 ` [PATCH v2 3/4] migration: ram: Switch to ram block writeback Beata Michalska
2019-11-06 14:18 ` Alex Bennée
2019-11-05 23:41 ` [PATCH v2 4/4] target/arm: Add support for DC CVAP & DC CVADP ins Beata Michalska
2019-11-06 12:37 ` Richard Henderson
2023-11-28 11:24 ` Philippe Mathieu-Daudé
2023-11-28 11:34 ` Peter Maydell
2023-11-28 11:44 ` Philippe Mathieu-Daudé
2023-11-28 18:07 ` Richard Henderson
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=20191105234100.22052-1-beata.michalska@linaro.org \
--to=beata.michalska@linaro.org \
--cc=alex.bennee@linaro.org \
--cc=dgilbert@redhat.com \
--cc=eric.auger@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=richard.henderson@linaro.org \
--cc=shameerali.kolothum.thodi@huawei.com \
/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).