Skip to contentSkip to conversation

State of KVM guest debugging support on Power

DISCUSSION Jan Kiszka 3 participants 5 messages Nov 1, 2011 – Nov 4, 2011 KVM

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

Hi there,

I'm generating some slides on guest debugging via kvm. What's the current state for Book-E and Book-S? Works out of box, mostly usable, or to be implemented? Is anyone using it?

Thanks,
Jan

#1 lore raw
Quoted 5 lines · Jan Kiszka

Hi there,

I'm generating some slides on guest debugging via kvm. What's the current state for Book-E and Book-S? Works out of box, mostly usable, or to be implemented? Is anyone using it?

Are you talking about guest debug using the QEMU stub or using
the virtual CPU's debug registers and interrupts? For Freescale
Book E we have both approaches working, and patches to be sent upstream soon.

Stuart

#2 lore raw
Quoted 11 lines · Stuart Yoder
Quoted 5 lines · Jan Kiszka

Hi there,

I'm generating some slides on guest debugging via kvm. What's the current state for Book-E and Book-S? Works out of box, mostly usable, or to be implemented? Is anyone using it?

Are you talking about guest debug using the QEMU stub or using
the virtual CPU's debug registers and interrupts? For Freescale
Book E we have both approaches working, and patches to be sent upstream soon.

For BookS I had played around with soft breakpoints for a bit, but I don't think I ever sent that upstream.

Alex

Quoted 2 lines

Stuart

author
#3 lore raw
In reply to Stuart Yoder
Quoted 11 lines · Stuart Yoder
Quoted 5 lines · Jan Kiszka

Hi there,

I'm generating some slides on guest debugging via kvm. What's the current state for Book-E and Book-S? Works out of box, mostly usable, or to be implemented? Is anyone using it?

Are you talking about guest debug using the QEMU stub or using
the virtual CPU's debug registers and interrupts? For Freescale
Book E we have both approaches working, and patches to be sent upstream soon.

It's good to see both features coming into mainline.

I'll talk about the former, ie. debugging without guest help/awareness (virtual hardware debugger). Is gdb well prepared for it (all registers available, real-mode support, etc.)?

Thanks,
Jan

#4 lore raw
Quoted 13 lines · Jan Kiszka
Quoted 11 lines · Stuart Yoder
Quoted 5 lines · Jan Kiszka

Hi there,

I'm generating some slides on guest debugging via kvm. What's the current state for Book-E and Book-S? Works out of box, mostly usable, or to be implemented? Is anyone using it?

Are you talking about guest debug using the QEMU stub or using the virtual CPU's debug registers and interrupts?    For Freescale Book E we have both approaches working, and patches to be sent upstream soon.

Quoted 5 lines

It's good to see both features coming into mainline.

I'll talk about the former, ie. debugging without guest help/awareness (virtual hardware debugger). Is gdb well prepared for it (all registers available, real-mode support, etc.)?

Right now it looks like the basic register set is available, not SPRs but not
because of any gdb limitation as far as I know. gdb supports additional
registers with the correct target description xml file passed back to it when it connects to the target.

In the QEMU monitor, we currently show key SPRs for 'info registers'.

As far as real mode goes, don't have direct experience with it as everything we are doing is bookE, which has no real mode.

Stuart