From: "Alex Bennée" <alex.bennee@linaro.org>
To: qemu-devel@nongnu.org
Cc: f4bug@amsat.org, mads@ynddal.dk, qemu-arm@nongnu.org,
"Alex Bennée" <alex.bennee@linaro.org>
Subject: [PATCH v2 00/11] gdbstub/next (MemTxAttrs and re-factoring)
Date: Mon, 26 Sep 2022 14:38:53 +0100 [thread overview]
Message-ID: <20220926133904.3297263-1-alex.bennee@linaro.org> (raw)
Hi,
This is v3 of the MexTxAttrs update alongside the current state of
gdbstub/next (as fixing current_cpu from gdbstub was the original
motivation).
Following feedback I've drastically simplified the first patch and
push the all the setting of requester_id to the per-arch tlb_fill and
get_phys_page_attrs_debug helpers to fill in correctly. There is also
a new patch to fix up HVF on Aarch64 which rely mostly on software
modelled devices.
The later re-factoring is unchanged having sailed through review
without any comments.
The following are left for review:
- qtest: make read/write operation appear to be from CPU
- target/arm: ensure HVF traps set appropriate MemTxAttrs
- target/arm: enable tracking of CPU index in MemTxAttrs
- hw: encode accessing CPU index in MemTxAttrs
Alex Bennée (11):
hw: encode accessing CPU index in MemTxAttrs
target/arm: enable tracking of CPU index in MemTxAttrs
target/arm: ensure HVF traps set appropriate MemTxAttrs
qtest: make read/write operation appear to be from CPU
hw/intc/gic: use MxTxAttrs to divine accessing CPU
hw/timer: convert mptimer access to attrs to derive cpu index
configure: move detected gdb to TCG's config-host.mak
gdbstub: move into its own sub directory
gdbstub: move sstep flags probing into AccelClass
gdbstub: move breakpoint logic to accel ops
gdbstub: move guest debug support check to ops
configure | 7 ++
meson.build | 4 +-
accel/kvm/kvm-cpus.h | 4 +
gdbstub/internals.h | 17 ++++
gdbstub/trace.h | 1 +
include/exec/memattrs.h | 17 +++-
include/qemu/accel.h | 12 +++
include/sysemu/accel-ops.h | 7 ++
include/sysemu/cpus.h | 3 +
include/sysemu/kvm.h | 20 -----
accel/accel-common.c | 10 +++
accel/kvm/kvm-accel-ops.c | 9 ++
accel/kvm/kvm-all.c | 44 +++++-----
accel/stubs/kvm-stub.c | 16 ----
accel/tcg/tcg-accel-ops.c | 98 +++++++++++++++++++++
accel/tcg/tcg-all.c | 17 ++++
gdbstub.c => gdbstub/gdbstub.c | 156 ++++-----------------------------
gdbstub/softmmu.c | 51 +++++++++++
gdbstub/user.c | 68 ++++++++++++++
hw/intc/arm_gic.c | 39 +++++----
hw/timer/arm_mptimer.c | 25 +++---
softmmu/cpus.c | 7 ++
softmmu/qtest.c | 26 +++---
target/arm/hvf/hvf.c | 4 +-
target/arm/ptw.c | 3 +
MAINTAINERS | 2 +-
gdbstub/meson.build | 9 ++
gdbstub/trace-events | 29 ++++++
trace-events | 28 ------
29 files changed, 461 insertions(+), 272 deletions(-)
create mode 100644 gdbstub/internals.h
create mode 100644 gdbstub/trace.h
rename gdbstub.c => gdbstub/gdbstub.c (95%)
create mode 100644 gdbstub/softmmu.c
create mode 100644 gdbstub/user.c
create mode 100644 gdbstub/meson.build
create mode 100644 gdbstub/trace-events
--
2.34.1
next reply other threads:[~2022-09-26 13:44 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-26 13:38 Alex Bennée [this message]
2022-09-26 13:38 ` [PATCH v2 01/11] hw: encode accessing CPU index in MemTxAttrs Alex Bennée
2022-09-26 14:34 ` Peter Maydell
2022-09-26 15:09 ` Alex Bennée
2022-09-26 15:30 ` Peter Maydell
2022-09-26 20:15 ` Alexander Graf
2022-09-26 13:38 ` [PATCH v2 02/11] target/arm: enable tracking of " Alex Bennée
2022-09-26 14:12 ` Peter Maydell
2022-09-26 15:05 ` Alex Bennée
2022-09-26 15:07 ` Peter Maydell
2022-09-26 13:38 ` [PATCH v2 03/11] target/arm: ensure HVF traps set appropriate MemTxAttrs Alex Bennée
2022-09-26 14:10 ` Peter Maydell
2022-09-26 15:46 ` Alex Bennée
2022-09-26 20:19 ` Alexander Graf
2022-09-26 13:38 ` [PATCH v2 04/11] qtest: make read/write operation appear to be from CPU Alex Bennée
2022-09-27 9:45 ` Thomas Huth
2022-09-26 13:38 ` [PATCH v2 05/11] hw/intc/gic: use MxTxAttrs to divine accessing CPU Alex Bennée
2022-09-26 14:14 ` Peter Maydell
2022-09-26 15:06 ` Alex Bennée
2022-09-26 15:18 ` Peter Maydell
2022-09-26 15:41 ` Alex Bennée
2022-09-26 15:45 ` Peter Maydell
2022-09-26 13:38 ` [PATCH v2 06/11] hw/timer: convert mptimer access to attrs to derive cpu index Alex Bennée
2022-09-26 13:39 ` [PATCH v2 07/11] configure: move detected gdb to TCG's config-host.mak Alex Bennée
2022-09-26 13:39 ` [PATCH v2 08/11] gdbstub: move into its own sub directory Alex Bennée
2022-09-26 13:39 ` [PATCH v2 09/11] gdbstub: move sstep flags probing into AccelClass Alex Bennée
2022-09-26 13:39 ` [PATCH v2 10/11] gdbstub: move breakpoint logic to accel ops Alex Bennée
2022-09-26 13:39 ` [PATCH v2 11/11] gdbstub: move guest debug support check to ops 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=20220926133904.3297263-1-alex.bennee@linaro.org \
--to=alex.bennee@linaro.org \
--cc=f4bug@amsat.org \
--cc=mads@ynddal.dk \
--cc=qemu-arm@nongnu.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 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).