Files
kvmtool/Documentation/kernel-debugging.txt
Wanlong Gao 26a3a071bb kvm tools: change the binary name kvm to lkvm in Documentation
Documentation: Change the binary name from *kvm* to *lkvm*,
since commit ad3efb18 already called the binary *lkvm* and
with a alias name *vm*.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
2015-06-01 16:39:50 +01:00

16 lines
441 B
Plaintext

This document explains how to debug a guests' kernel using KGDB.
1. Run the guest:
'lkvm run -k [vmlinuz] -p "kgdboc=ttyS1 kgdbwait" --tty 1'
And see which PTY got assigned to ttyS1 (you'll see:
' Info: Assigned terminal 1 to pty /dev/pts/X').
2. Run GDB on the host:
'gdb [vmlinuz]'
3. Connect to the guest (from within GDB):
'target remote /dev/pty/X'
4. Start debugging! (enter 'continue' to continue boot).