From: Francesco Cagnin <francesco.cagnin@gmail.com>
To: Mads Ynddal <mads@ynddal.dk>
Cc: qemu-devel@nongnu.org, dirty@apple.com, r.bolshakov@yadro.com,
"Peter Maydell" <peter.maydell@linaro.org>,
"open list:ARM cores" <qemu-arm@nongnu.org>,
"Alexander Graf" <agraf@csgraf.de>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Francesco Cagnin" <fcagnin@quarkslab.com>,
"Alex Bennée" <alex.bennee@linaro.org>
Subject: Re: [PATCH 2/3] hvf: implement guest debugging on Apple Silicon hosts
Date: Tue, 8 Nov 2022 11:09:35 +0100 [thread overview]
Message-ID: <CAF8_6KmwMCiNcC-romHoGZhcpPph71b3qv7yn9RHQArV3Q+nDA@mail.gmail.com> (raw)
In-Reply-To: <2B918171-9464-40DC-AE11-D25E60858370@ynddal.dk>
Mads, thanks for the review and feedbacks. I worked on this a few months
ago but only managed to have it published now, I'm sorry for work being
done twice.
I'll add support for SSTEP_NOIRQ as you suggested.
For multi-core systems there's no particular issue, just I'm not
familiar with all of these topics and I'm asking for good practices. KVM
saves breakpoints information in struct 'KVMState', and following the
same approach I've updated struct 'HVFState' to store equivalent data.
To keep separate information for each cpu, KVM uses field 'kvm_state' in
struct 'CPUState' (see 'include/hw/core/cpu.h'), but at the moment
there's no analogous field for the HVF state (which is instead defined
as a single global variable in 'accel/hvf/hvf-accel-ops.c'). Should we
add a new field to 'CPUState' for the HVF state, or take a different
approach?
For your last question regarding `hv_vcpu_set_trap_debug_exceptions()`,
I think it's possible to move it to `hvf_arch_update_guest_debug()` but
I'm not confident about `hvf_arch_init_vcpu()`, I will experiment again.
next prev parent reply other threads:[~2022-11-08 10:11 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-04 18:40 [PATCH 0/3] Add gdbstub support to HVF francesco.cagnin
2022-11-04 18:40 ` [PATCH 1/3] arm: move KVM breakpoints helpers francesco.cagnin
2022-11-07 13:00 ` Mads Ynddal
2022-11-07 14:15 ` Alex Bennée
2022-11-07 14:39 ` Philippe Mathieu-Daudé
2022-11-09 12:55 ` Francesco Cagnin
2022-11-04 18:41 ` [PATCH 2/3] hvf: implement guest debugging on Apple Silicon hosts francesco.cagnin
2022-11-07 12:38 ` Mads Ynddal
2022-11-07 13:28 ` Mads Ynddal
2022-11-08 10:09 ` Francesco Cagnin [this message]
2022-11-08 11:51 ` Mads Ynddal
2022-11-09 10:12 ` Mads Ynddal
2022-11-09 10:58 ` Peter Maydell
2022-11-09 11:34 ` Francesco Cagnin
2022-11-04 18:41 ` [PATCH 3/3] hvf: handle writes of MDSCR_EL1 and DBG*_EL1 francesco.cagnin
2022-11-07 13:00 ` Mads Ynddal
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=CAF8_6KmwMCiNcC-romHoGZhcpPph71b3qv7yn9RHQArV3Q+nDA@mail.gmail.com \
--to=francesco.cagnin@gmail.com \
--cc=agraf@csgraf.de \
--cc=alex.bennee@linaro.org \
--cc=dirty@apple.com \
--cc=fcagnin@quarkslab.com \
--cc=mads@ynddal.dk \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=r.bolshakov@yadro.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).