From: Hollis Blanchard <hollis_blanchard@mentor.com>
To: kvm-ppc@vger.kernel.org
Subject: Re: Software breakpoint in kvmppc guest debug
Date: Tue, 09 Nov 2010 17:00:13 +0000 [thread overview]
Message-ID: <4CD97E1D.2050703@mentor.com> (raw)
In-Reply-To: <A9833F0F7901024DA08417AA5A9887D92E3299@zch01exm26.fsl.freescale.net>
On 11/09/2010 08:50 AM, Alexander Graf wrote:
> On 09.11.2010, at 17:36, Scott Wood wrote:
>> > On Tue, 9 Nov 2010 13:14:47 +0100
>> > Alexander Graf<agraf@suse.de> wrote:
>>> >> On 09.11.2010, at 04:40, Liu Yu-B13201 wrote:
>>>> >>> 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.
>>> >>
>>> >> That's always the case with overloading instructions :).
>>> >>
>>>> >>> also this instruction has uncertain effective on E.HV platform such as e500mc.
>>> >>
>>> >> Not sure if the hardware or other hypervisors break the spec, but according to 2.06 page 908 only LEV=0 and LEV=1 are defined.
>> >
>> > Does it say whether undefined values trap? Maybe it only looks at the
>> > low bit of LEV, or checks != 0, etc.
> It doesn't mentioned undefined values. It only mentions LEV=0 and LEV=1. But I don't like the idea of hard overloading a specific LEV value either way :). I'd rather use an undefined instruction for it.
Who's to say that undefined instruction will remain undefined in the
future? It amounts to the same problem.
Although in other ways the ISA benefits from a great deal of foresight,
as far as I remember this particular issue isn't addressed.
Hollis Blanchard
Mentor Graphics, Embedded Systems Division
next prev parent reply other threads:[~2010-11-09 17:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CD97E1D.2050703@mentor.com \
--to=hollis_blanchard@mentor.com \
--cc=kvm-ppc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.