Skip to contentSkip to conversation

add more regs to kvm_show_regs for powerpc

PATCH RESEND Applied Christian Ehrhardt 2 participants 2 messages Jan 17, 2008 – Jan 20, 2008 1 message not in the archive KVM

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 add more regs to kvm_show_regs for powerpc

Resend ppc patches neither rejected, commented nor accepted yet

Subject: [PATCH][RESEND] add more regs to kvm_show_regs for powerpc
From: Christian Ehrhardt <[email protected]>

This adds some registers useful for guest debugging to the powerpc code for kvm_show_regs in libkvm.

 libkvm-powerpc.c |    4 ++++
 1 files changed, 4 insertions(+)
libkvm/libkvm-powerpc.c +4 -0
index e4385c3..064730a 100644
@@ -67,6 +67,10 @@ void kvm_show_regs(kvm_context_t kvm, int vcpu)
 	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/

A message that is not in the archive (sent off-list or not yet received): 12005858951896-git-send-email-ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org

Applied
#2 lore raw
Quoted 8 lines · Christian Ehrhardt

Resend ppc patches neither rejected, commented nor accepted yet

Subject: [PATCH][RESEND] add more regs to kvm_show_regs for powerpc
From: Christian Ehrhardt <[email protected]>

This adds some registers useful for guest debugging to the powerpc code for kvm_show_regs in libkvm.

Applied, thanks.

Signature · 7 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
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/