All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerone Young <jyoung5@us.ibm.com>
To: kvm-ppc@vger.kernel.org
Subject: Re: [kvm-ppc-devel] [PATCH] kvm: libkvm: add more regs
Date: Tue, 22 Jan 2008 22:59:11 +0000	[thread overview]
Message-ID: <1201042751.4181.0.camel@thinkpad> (raw)

My bad. I sent the wrong patch.

On Tue, 2008-01-22 at 16:56 -0600, Jerone Young wrote:
> # HG changeset patch
> # User Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
> # Date 1200832504 -7200
> # Node ID d3b8339b7c6b25422abdb775d397fadf5245a11a
> # Parent  505980e3cc3b960730ebb6dc2cdb612addb13032
> kvm: libkvm: add more regs to kvm_show_regs for powerpc
> 
> This adds some registers useful for guest debugging to the powerpc code for
> kvm_show_regs in libkvm.
> 
> Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
> Signed-off-by: Avi Kivity <avi@qumranet.com>
> 
> committer: Avi Kivity <avi@qumranet.com>
> 
> diff --git a/libkvm/libkvm-powerpc.c b/libkvm/libkvm-powerpc.c
> --- a/libkvm/libkvm-powerpc.c
> +++ b/libkvm/libkvm-powerpc.c
> @@ -67,6 +67,10 @@ void kvm_show_regs(kvm_context_t kvm, in
>  	if (kvm_get_regs(kvm, vcpu, &regs))
>  		return;
> 
> +	fprintf(stderr,"guest vcpu #%d\n", vcpu);
> +	fprintf(stderr,"pc:   %08x msr:  %08x\n", regs.pc, regs.msr);
> +	fprintf(stderr,"lr:   %08x ctr:  %08x\n", regs.lr, regs.ctr);
> +	fprintf(stderr,"srr0: %08x srr1: %08x\n", regs.srr0, regs.srr1);
>  	for (i=0; i<32; i+=4)
>  	{
>  		fprintf(stderr, "gpr%02d: %08x %08x %08x %08x\n", i,
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> kvm-ppc-devel mailing list
> kvm-ppc-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-ppc-devel mailing list
kvm-ppc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel

                 reply	other threads:[~2008-01-22 22:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1201042751.4181.0.camel@thinkpad \
    --to=jyoung5@us.ibm.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.