qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Guest VM debug (Int 3 panic)
@ 2013-09-25 17:55 Hu Yaohui
  2013-09-25 18:08 ` [Qemu-devel] Fwd: " Hu Yaohui
  0 siblings, 1 reply; 9+ messages in thread
From: Hu Yaohui @ 2013-09-25 17:55 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 892 bytes --]

Hi All,
I am trying to debug guest OS through qemu with kvm enabled.
Following is what I have done:
1: fire the qemu-kvm
<snip>
sudo qemu-system-x86_64 -hda vdisk.img -m 4096 -smp 2 -vnc :2 -boot c -s
</snip>

2: wait until login into guest OS (ubuntu 10.04)

3: fire gdb
<snip>
gdb vmlinux
target remote :1234
b do_fork
set arch i386:x86-64
c
</snip>

4: after I typed "ls" in guest OS. The guest OS paniced with some message
related to "int 3 blah blah". Then crashed.

Someone said we should use hardware breakpoint when kvm is enabled, or
"monitor system_reset" after set the breakpoint, but it didn't work for me.
The hardware breakpoint could not been hit anyway.

I have tried with "-no-kvm", it works normally with breakpoints. But I want
to debug the guest OS with kvm enabled. I don't know whether someone has
met this similar situation.

Thanks for your time!

Best Wishes,
Yaohui

[-- Attachment #2: Type: text/html, Size: 1470 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-09-26 21:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-25 17:55 [Qemu-devel] Guest VM debug (Int 3 panic) Hu Yaohui
2013-09-25 18:08 ` [Qemu-devel] Fwd: " Hu Yaohui
2013-09-26  6:08   ` Jan Kiszka
2013-09-26 14:14     ` Hu Yaohui
2013-09-26 17:26       ` Jan Kiszka
2013-09-26 18:53         ` Hu Yaohui
2013-09-26 19:07           ` Jan Kiszka
2013-09-26 19:20             ` Hu Yaohui
2013-09-26 21:51               ` Hu Yaohui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).