Skip to content

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

Aneesh Kumar K.V qemu-devel 2 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest5 patches 5 repliesApplied
  2. v13 patches 6 repliesSuperseded

Changes in v9 from the cover letter

* Add hpte store support. Currently we don't have any user for this.

Patches in v9 Applied

#Subject and filesSizeRepliesApplied
1/5target-ppc: Update external_htab even when HTAB is managed by kernelhw/ppc/spapr.c+7 -00 replies
2/5target-ppc: Fix htab_mask calculationhw/ppc/spapr.c target-ppc/cpu.h target-ppc/kvm.c +3 more+23 -810 replies
3/5target-ppc: Fix page table lookup with kvm enabledhw/ppc/spapr.c hw/ppc/spapr_hcall.c target-ppc/kvm.c +3 more+181 -396 replies
4/5target-ppc: Change the hpte sore APIhw/ppc/spapr_hcall.c target-ppc/mmu-hash64.c target-ppc/mmu-hash64.h+16 -290 replies
5/5target-ppc: Update ppc_hash64_store_hpte to support updating in-kernel htabtarget-ppc/kvm.c target-ppc/kvm_ppc.h target-ppc/mmu-hash64.c +1 more+60 -144 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchAneesh Kumar K.VGreg Kurz
1/5
2/5R-b
3/5R-b R-b
4/5
5/5R-b

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

Read the v9 thread

Cover letter [Qemu-devel] [PATCH V9 0/5] 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. The last patch also enable qemu monitor command dump-guest-memory

With this patch series we can now do

(gdb) x/4i htab_call_hpte_insert1

   0xc0000000000470d8 <.htab_call_hpte_insert1>:        bl      0xc0000000000470d8 <.htab_call_hpte_insert1>
   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

(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/4i 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

(gdb)

NOTE: We still don't support inserting breakpoints.

Before Fix:
(qemu) memsave 0xc0000000000470d8 10 memdump
Invalid parameter 'addr'
(qemu)

After fix:

(qemu) memsave 0xc0000000000470d8 10 memdump
(qemu)

Changes from V8:
* Add hpte store support. Currently we don't have any user for this.