All of lore.kernel.org
 help / color / mirror / Atom feed
* Software breakpoint in kvmppc guest debug
@ 2010-11-09  3:40 Liu Yu-B13201
  2010-11-09 12:14 ` Alexander Graf
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: Liu Yu-B13201 @ 2010-11-09  3:40 UTC (permalink / raw)
  To: kvm-ppc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1254", Size: 871 bytes --]


Hello all,

Software breakpoint is a instruction which should make guest exit.
We replace guest code with software breakpoint instruction so that we can stop at anywhere we want.

In my previous guest debug patches for e500, I used instruction (sc 64) as software breakpoint.
Seem this was not good, since (sc 64) maybe defined in future.
also this instruction has uncertain effective on E.HV platform such as e500mc.

Another choice is to use trap instruction.
In order to distinguish between real guest trap and software breakpoint trap.
It's needed to trace software breakpoint addressed in kernel,
and we need to create ioctls to add/remove software point.

So guys, which way should we choose?
Or is there any other better idea?

Thanks,
Yu
ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¤¾oé¥ÏâžØ^n‡r¡ö¦zË\x1aëh™¨è­Ú&£ûàz¿äz¹Þ—ú+€Ê+zf£¢·hšˆ§~†­†Ûiÿÿïêÿ‘êçz_è®\x0fæj:+v‰¨þ)ߣøm

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

end of thread, other threads:[~2010-11-23  4:53 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-09  3:40 Software breakpoint in kvmppc guest debug Liu Yu-B13201
2010-11-09 12:14 ` Alexander Graf
2010-11-09 16:36 ` Scott Wood
2010-11-09 16:50 ` Alexander Graf
2010-11-09 17:00 ` Hollis Blanchard
2010-11-09 17:14 ` Alexander Graf
2010-11-09 18:17 ` Scott Wood
2010-11-09 18:24 ` Scott Wood
2010-11-09 18:26 ` Alexander Graf
2010-11-09 18:43 ` Scott Wood
2010-11-09 18:49 ` Alexander Graf
2010-11-10  3:31 ` Yoder Stuart-B08248
2010-11-10  3:39 ` Alexander Graf
2010-11-10  3:49 ` Yoder Stuart-B08248
2010-11-10  9:36 ` Jan Kiszka
2010-11-23  4:53 ` Yoder Stuart-B08248

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.