* Debugging KVM
@ 2007-02-26 21:16 Barry Silverman
[not found] ` <loom.20070226T221352-244-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Barry Silverman @ 2007-02-26 21:16 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
I am curious what techniques are being used to debug problems with KVM.
Are you using the qemu GDB stub to step the guest, or using KDB/KGDB to debug
the driver-level code, or just using a kernel printfs?
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
^ permalink raw reply [flat|nested] 2+ messages in thread[parent not found: <loom.20070226T221352-244-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>]
* Re: Debugging KVM [not found] ` <loom.20070226T221352-244-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org> @ 2007-02-27 7:01 ` Avi Kivity 0 siblings, 0 replies; 2+ messages in thread From: Avi Kivity @ 2007-02-27 7:01 UTC (permalink / raw) To: Barry Silverman; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Barry Silverman wrote: > I am curious what techniques are being used to debug problems with KVM. > > Are you using the qemu GDB stub to step the guest, or using KDB/KGDB to debug > the driver-level code, or just using a kernel printfs? > > Various techniques are used depending on the bug and the weather. If a guest won't boot, I dump a list of visited instruction pointers from qemu and do a binary search on that using the kvm hardware breakpoint feature. If the guest is Linux, you can modify it to check itself mode. For mmu trouble, sometimes enabling AUDIT in mmu.c helps; sometimes I have to add a test for a specific misbehaving address. For host crashes, printks+netconsole are the way (though a kernel debugger might help here; I'm just used to printks). -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-02-27 7:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-26 21:16 Debugging KVM Barry Silverman
[not found] ` <loom.20070226T221352-244-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
2007-02-27 7:01 ` Avi Kivity
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox