Skip to content

target-ppc: Add support for dumping guest memory using qemu gdb server

Aneesh Kumar K.V qemu-devel 1 version In review

Get series with b4
b4 am 1376915356-31011-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3target-ppc: Update slb array with correct index values.target-ppc/kvm.c+12 -22 replies
2/3target-ppc: Use #define instead of opencoding SLB valid bittarget-ppc/mmu_helper.c+1 -11 reply
3/3target-ppc: Fix page table lookup with kvm enabledtarget-ppc/kvm.c target-ppc/kvm_ppc.h target-ppc/mmu-hash64.c+63 -101 reply

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchAndreas Färber
1/3
2/3R-b
3/3

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/3] target-ppc: Add support for dumping guest memory using qemu gdb server

Hi,

This patch series implement support for dumping guest memory using qemu gdb server.

Without this patch we would get.

(gdb) x/10 do_fork

     0xc000000000098660 <do_fork>:   Cannot access memory at address 0xc000000000098660

(gdb)

With this patch series we can now do

(gdb) target remote localhost:1234
Remote debugging using localhost:1234
.plpar_hcall_norets () at arch/powerpc/platforms/pseries/hvCall.S:119
119 HCALL_INST_POSTCALL_NORETS
.....
.....
(gdb) x/10i htab_call_hpte_insert1

   0xc0000000000470d8 <.htab_call_hpte_insert1>:        bl      0xc00000000005f8f0 <pSeries_lpar_hpte_insert>
   0xc0000000000470dc <.htab_call_hpte_insert1+4>:      cmpdi   r3,0
   0xc0000000000470e0 <.htab_call_hpte_insert1+8>:      bge     0xc000000000047190 <htab_pte_insert_ok>
   0xc0000000000470e4 <.htab_call_hpte_insert1+12>:     cmpdi   r3,-2

NOTE: We still don't support inserting breakpoints.

-aneesh