qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2 0/1] target-riscv: support QMP dump-guest-memory


From: Yifei Jiang
Subject: [PATCH v2 0/1] target-riscv: support QMP dump-guest-memory
Date: Fri, 18 Dec 2020 10:26:52 +0800

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 0x80000000
0x80000000:     0x00050433      0x000584b3      0x00060933      0x62c000ef
0x80000010:     0x00050833      0x00040533      0x000485b3      0x00090633
0x80000020:     0x046358fd      0x1d630118      0x08171305      0x08130000
0x80000030:     0x48854868      0x0118282f      0x12081463      0x00000297
0x80000040:     0x48428293      0x00000317      0xfbc30313      0x0062b023
...

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 | 189 +++++++++++++++++++++++++++++++++++++++
 target/riscv/cpu.c       |   2 +
 target/riscv/cpu.h       |   4 +
 target/riscv/cpu_bits.h  |   1 +
 target/riscv/meson.build |   1 +
 5 files changed, 197 insertions(+)
 create mode 100644 target/riscv/arch_dump.c

-- 
2.19.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]