target-riscv: support QMP dump-guest-memory
Status from this message: Applied to riscv-to-apply.next
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest1 patch 1 replyApplied
- v31 patch 2 repliesSuperseded
- v21 patch 3 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 1 patch | 2 replies | Superseded |
Changes in v4 from the cover letter
1. Fix commit information and code comments
Patches in v4 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | target-riscv: support QMP dump-guest-memorytarget/ target/ target/ +2 more | +210 | 1 reply |
Reviews trailers per patch
The patch has a Reviewed-by or Acked-by.
| Patch | Alistair Francis | Andrew Jones | Palmer Dabbelt |
|---|---|---|---|
| 1/1 | R-b | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v4 0/1] target-riscv: support QMP dump-guest-memory
Hi,
This patch supports QMP dump-guest-memory in RISC-V. We tested this feature by using following command: dump-guest-memory guest.memory.
Then we used the gdb tool to debug guest.memory: gdb vmlinux guest.memory. The test result is as follow:
1. info registers
ra 0xffffffe0008cb83c 0xffffffe0008cb83c <_raw_spin_lock_irqsave+28> sp 0xffffffe0012c3f70 0xffffffe0012c3f70 gp 0xffffffe0010d6048 0xffffffe0010d6048 <__compound_literal.109> tp 0xffffffe00127f200 0xffffffe00127f200 t0 0x1f8 504 t1 0x0 0 t2 0x3fd9bf5c3c 274236136508 fp 0xffffffe0012c3f80 0xffffffe0012c3f80 s1 0xffffffe0010d7228 -137421295064 a0 0x1 1 a1 0xffffffe00127f200 -137419558400 a2 0xffffffe00110a0b8 -137421086536 a3 0x3af32000 989011968 a4 0x35b2 13746 a5 0xffffffe03af6b880 -136449705856 a6 0x1c5d09af00 121820000000 a7 0x54494d45 1414090053 s2 0x1 1 s3 0xffffffe0010d73f0 -137421294608 s4 0x0 0 s5 0x0 0 s6 0x0 0 s7 0xc 12 s8 0x2000 8192 s9 0x80015708 2147571464 s10 0x0 0 s11 0x0 0 t3 0x2257d71 36011377 t4 0x0 0 t5 0x3ab0030 61538352 t6 0x3fffefb3a0 274876838816 pc 0xffffffe000201478 0xffffffe000201478 <arch_cpu_idle+10>
2. x/1024ux 0x800000000x80000000: 0x00050433 0x000584b3 0x00060933 0x62c000ef0x80000010: 0x00050833 0x00040533 0x000485b3 0x000906330x80000020: 0x046358fd 0x1d630118 0x08171305 0x081300000x80000030: 0x48854868 0x0118282f 0x12081463 0x000002970x80000040: 0x48428293 0x00000317 0xfbc30313 0x0062b023
...
Changes since v3
1. Fix commit information and code comments
Changes since v2
1. Add build-bugs.
Changes since v1
1. Fix the build failure for RISC-V linux user.
Yifei Jiang (1):
target-riscv: support QMP dump-guest-memory
target/riscv/arch_dump.c | 202 +++++++++++++++++++++++++++++++++++++++ target/riscv/cpu.c | 2 + target/riscv/cpu.h | 4 + target/riscv/cpu_bits.h | 1 + target/riscv/meson.build | 1 + 5 files changed, 210 insertions(+) create mode 100644 target/riscv/arch_dump.c
Signature · 1 line
2.19.1