Skip to content

target-s390x: add Program-Event Recording feature

Aurelien Jarno qemu-devel 1 version Applied

Status from this message: Thanks, applied all to s390-next.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/15softmmu: provide tlb_vaddr_to_host function for user modeinclude/exec/cpu_ldst.h+6 -20 replies
2/15target-s390x: function to adjust the length wrt page boundarytarget-s390x/mem_helper.c+11 -00 replies
3/15target-s390x: mvc_fast_memset: access memory through softmmutarget-s390x/mem_helper.c+32 -410 replies
4/15target-s390x: mvc_fast_memmove: access memory through softmmutarget-s390x/mem_helper.c+27 -570 replies
5/15target-s390x: add PER related constantstarget-s390x/cpu.h+16 -00 replies
6/15target-s390x: add get_per_atmid functiontarget-s390x/cpu.h+12 -00 replies
7/15target-s390x: add get_per_in_range functiontarget-s390x/cpu.h+11 -00 replies
8/15target-s390x: basic PER event handlingtarget-s390x/cpu.h target-s390x/helper.c target-s390x/helper.h +2 more+71 -200 replies
9/15target-s390x: PER successful-branching event supporttarget-s390x/helper.h target-s390x/misc_helper.c target-s390x/translate.c+51 -00 replies
10/15target-s390x: PER instruction-fetch event supporttarget-s390x/helper.h target-s390x/misc_helper.c target-s390x/translate.c+17 -00 replies
11/15translate-all: fix watchpoints if retranslation not possibletranslate-all.c+15 -50 replies
12/15target-s390x: PER storage-alteration event supporttarget-s390x/cpu-qom.h target-s390x/cpu.c target-s390x/cpu.h +2 more+100 -30 replies
13/15target-s390x: PER store-using-real-address event supporttarget-s390x/mem_helper.c+16 -00 replies
14/15target-s390x: PER instruction-fetch nullification event supporttarget-s390x/misc_helper.c+12 -00 replies
15/15target-s390x: PER: add Breaking-Event-Address registertarget-s390x/cpu.c target-s390x/cpu.h target-s390x/helper.c +1 more+37 -113 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/15] target-s390x: add Program-Event Recording feature

This patch set adds support for the Program-Event Recording (PER) feature. It implements all the PER functionalities except the following ones:
- zero-address-detection event (part of the zero-address-detection facility)
- transaction-end event (we don't implement transactional memory)

There are also a few limitations to the storage-alteration event, as it doesn't support per ASC enablement, nor it doesn't correctly provide the ASC used for a storage event in the PER AI field.

With this patch set, it's possible to fully use GDB in a s390x guest, including stepping, breakpoints and watchpoints.

Aurelien Jarno (15):
softmmu: provide tlb_vaddr_to_host function for user mode
target-s390x: function to adjust the length wrt page boundary
target-s390x: mvc_fast_memset: access memory through softmmu
target-s390x: mvc_fast_memmove: access memory through softmmu
target-s390x: add PER related constants
target-s390x: add get_per_atmid function
target-s390x: add get_per_in_range function
target-s390x: basic PER event handling
target-s390x: PER successful-branching event support
target-s390x: PER instruction-fetch event support
translate-all: fix watchpoints if retranslation not possible
target-s390x: PER storage-alteration event support
target-s390x: PER store-using-real-address event support
target-s390x: PER instruction-fetch nullification event support
target-s390x: PER: add Breaking-Event-Address register

 include/exec/cpu_ldst.h    |   8 +-
 target-s390x/cpu-qom.h     |   1 +
 target-s390x/cpu.c         |   7 ++
 target-s390x/cpu.h         |  55 +++++++++++--
 target-s390x/helper.c      | 130 +++++++++++++++++++++++++-----
 target-s390x/helper.h      |   3 +
 target-s390x/mem_helper.c  | 193 +++++++++++++++++++++++----------------------
 target-s390x/misc_helper.c |  46 +++++++++++
 target-s390x/translate.c   |  82 ++++++++++++++++++-
 translate-all.c            |  20 +++--
 10 files changed, 420 insertions(+), 125 deletions(-)
Signature · 1 line
2.1.4