qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/5]
@ 2009-07-25  8:40 Liu Yu
  2009-07-25  8:40 ` [Qemu-devel] [PATCH 1/5] Fix kvmppc build error Liu Yu
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Liu Yu @ 2009-07-25  8:40 UTC (permalink / raw)
  To: qemu-devel; +Cc: jan.kiszka, froydnj, kvm-ppc, hollisb


The whole patchset includes:
patch 1: fix kvmppc build error
patch 2: fix kvmppc init error
patch 3~5: add kvmppc guest debug support

The guest debug still have some problems I haven't solved.

1. gdb 'next' command uses software breakpoint
software breakpoint is implemented via modify guest's code.
In most case it works well,
but when used by 'next' it's easy to make trouble on powerpc booke.

For example booke has a code template for
jumping to and returning from interrupt handlers:

	bl transfer
	.long handler_addr
	.long ret_addr

when call transfer, it never return but
in transfer assembly code it will read the handler_addr
and ultimately call the handler.
Gdb doesn't know that and treat it as a normal function call.
so gdb put a software breakpoint instruction at handler_addr,
in order to get trap there when return from transfer.

Then guest will read software breakpoint as handler_addr and jump to there..

I'm not sure if x86 suffer this kind of issue.
Is there any way to avoid this?


2. gdb 'watch' command
Jan told me gdb>6.8 can issue hardware watchpoint request via command 'watch',
my gdb is 6.8.50.20080821-cvs and our toolchain provider confirm that it supports hardware watch
However when I use 'watch', I can only see single step from gdbstub side.
Did I miss anything?

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2009-07-28  8:12 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-25  8:40 [Qemu-devel] [PATCH 0/5] Liu Yu
2009-07-25  8:40 ` [Qemu-devel] [PATCH 1/5] Fix kvmppc build error Liu Yu
2009-07-25  8:40   ` [Qemu-devel] [PATCH 2/5] Fix booke registers init Liu Yu
2009-07-25  8:40     ` [Qemu-devel] [PATCH 3/5] Add guest debug support for kvmppc Liu Yu
2009-07-25  8:40       ` [Qemu-devel] [PATCH 4/5] Add eaddr translator for fsl_booke mmu Liu Yu
2009-07-25  8:40         ` [Qemu-devel] [PATCH 5/5] guest debug init for 440 and e500 core Liu Yu
2009-07-25 10:27           ` [Qemu-devel] " Jan Kiszka
2009-07-25 10:18       ` [Qemu-devel] Re: [PATCH 3/5] Add guest debug support for kvmppc Jan Kiszka
2009-07-28  2:01         ` [Qemu-devel] " Liu Yu-B13201
2009-07-25 10:04     ` [Qemu-devel] Re: [PATCH 2/5] Fix booke registers init Jan Kiszka
2009-07-27 10:31       ` [Qemu-devel] " Liu Yu-B13201
2009-07-25 10:43 ` [Qemu-devel] Re: [PATCH 0/5] Jan Kiszka
2009-07-27 10:39   ` [Qemu-devel] " Liu Yu-B13201
2009-07-27 13:14 ` [Qemu-devel] " Nathan Froyd
2009-07-28  8:11   ` [Qemu-devel] " Liu Yu-B13201

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).