Skip to content

Fix GDB support for macOS hvf

Mads Ynddal qemu-arm qemu-devel 1 version Applied

Status from this message: Applied to target-arm.next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2hvf: avoid repeatedly setting trap debug for each cputarget/arm/hvf/hvf.c+11 -162 replies
2/2hvf: only update sysreg from owning threadaccel/hvf/hvf-all.c+6 -12 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDaniel GomezAlex Bennée
1/2T-b R-b
2/2T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] Fix GDB support for macOS hvf

From: Mads Ynddal <[email protected]>

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(-)
Signature · 1 line
2.48.1