Skip to content

softmmu: Restore use of CPU watchpoint for non-TCG accelerators

Philippe Mathieu-Daudé kvm qemu-arm qemu-devel 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 3 repliesIn review
  2. v13 patches 1 replySuperseded

Changes in v2 from the cover letter

- Include "hw/core/tcg-cpu-ops.h" where cpu_check_watchpoint() and cpu_watchpoint_address_matches() are called.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3softmmu: Restrict cpu_check_watchpoint / address_matches to TCG accelinclude/hw/core/cpu.h include/hw/core/tcg-cpu-ops.h target/arm/tcg/mte_helper.c +2 more+46 -371 reply
2/3softmmu/watchpoint: Add missing 'qemu/error-report.h' includesoftmmu/watchpoint.c+1 -01 reply
3/3softmmu: Restore use of CPU watchpoint for all acceleratorsinclude/hw/core/cpu.h softmmu/meson.build softmmu/watchpoint.c+6 -21 reply

Reviews trailers per patch

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

PatchFabiano Rosas
1/3R-b
2/3R-b
3/3R-b

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

Read the v2 thread

Cover letter [PATCH-for-8.0 v2 0/3] softmmu: Restore use of CPU watchpoint for non-TCG accelerators

Commit 2609ec2868 ("softmmu: Extract watchpoint API from physmem.c") restricted CPU watchpoints to TCG accelerator. This is wrong, as other accelerators such KVM do use watchpoints. Revert (partially) this commit.

Since v1:
- Include "hw/core/tcg-cpu-ops.h" where cpu_check_watchpoint() and cpu_watchpoint_address_matches() are called.

Philippe Mathieu-Daudé (3):
softmmu: Restrict cpu_check_watchpoint / address_matches to TCG accel softmmu/watchpoint: Add missing 'qemu/error-report.h' include
softmmu: Restore use of CPU watchpoint for all accelerators

 include/hw/core/cpu.h         | 39 +------------------------------
 include/hw/core/tcg-cpu-ops.h | 43 +++++++++++++++++++++++++++++++++++
 softmmu/watchpoint.c          |  5 ++++
 target/arm/tcg/mte_helper.c   |  1 +
 target/arm/tcg/sve_helper.c   |  1 +
 target/s390x/tcg/mem_helper.c |  1 +
 softmmu/meson.build           |  2 +-
 7 files changed, 53 insertions(+), 39 deletions(-)
Signature · 1 line
2.38.1