qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix GDB support for macOS hvf
@ 2025-04-02 13:52 Mads Ynddal
  2025-04-02 13:52 ` [PATCH 1/2] hvf: avoid repeatedly setting trap debug for each cpu Mads Ynddal
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Mads Ynddal @ 2025-04-02 13:52 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-arm, Phil Dennis-Jordan, Cameron Esfahani, Roman Bolshakov,
	Peter Maydell, Alexander Graf, Mads Ynddal

From: Mads Ynddal <m.ynddal@samsung.com>

In (recent versions of?) macOS, calls to hv_vcpu_set_sys_reg were failing if
they were issued outside of the specific thread that owns the vCPU.

This caused a crash when attaching a debugger through the GDB stub.

This GDB stub has worked before, so it is unclear if Apple changed the
behavior of the function in a release of macOS.

Mads Ynddal (2):
  hvf: avoid repeatedly setting trap debug for each cpu
  hvf: only update sysreg from owning thread

 accel/hvf/hvf-all.c  |  7 ++++++-
 target/arm/hvf/hvf.c | 27 +++++++++++----------------
 2 files changed, 17 insertions(+), 17 deletions(-)

-- 
2.48.1



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-05-02 12:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-02 13:52 [PATCH 0/2] Fix GDB support for macOS hvf Mads Ynddal
2025-04-02 13:52 ` [PATCH 1/2] hvf: avoid repeatedly setting trap debug for each cpu Mads Ynddal
2025-04-02 18:15   ` Daniel Gomez
2025-04-14  9:20   ` Alex Bennée
2025-04-02 13:52 ` [PATCH 2/2] hvf: only update sysreg from owning thread Mads Ynddal
2025-04-14  9:11   ` Alex Bennée
2025-05-02 12:55   ` Peter Maydell
2025-04-14  8:07 ` [PATCH 0/2] Fix GDB support for macOS hvf Mads Ynddal
2025-05-02 12:57 ` Peter Maydell

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).