SlideShare a Scribd company logo
From printk to QEMU: Xen/Linux Kernel debugging
<Insert Picture Here>




From printk to QEMU: Xen/Linux Kernel debugging
Daniel Kiper - daniel.kiper@oracle.com
Presentation plan

•   printk and companions
•   gdb
•   kgdb, GDB stub, …
•   QEMU
•   kdump

• Documentation

• Questions and Answers
printk usage

  …
  printk(KERN_DEBUG ”Something went wrongn”)
  …


• Linux Kernel has some useful abreviations:
  pr_info(), pr_debug(), …
• … and pr_info_once(), pr_debug_once(), …
• All functions/macros accept most of standard C
  printf() format strings
• /proc/sys/kernel/printk controls log levels
serial console scenario




                 Null modem connection




Debugging host                           Debugged target
printk and Linux serial/early console

• printk output is send usualy to graphic card by default
• This behavior is not very useful for debugging
  because output may disappear
• Serial console is a solution in this case
• Linux Kernel serial console activation:
       /boot/vmlinuz … console=ttyS0,115200n8 …
• Linux Kernel early console activation:
       /boot/vmlinuz … earlyprintk=ttyS0,115200 …
• Other useful Linux Kernel logging options:
  • debug
  • loglevel=<0-7>
printk and Xen serial console

• Xen serial console activation:
       /boot/xen.gz … com1=115200,8n1 console=com1 …
• Other Xen useful logging options:
  • sync_console
  • console_to_ring
  • loglvl=all
  • guest_loglvl=all
  • apic_verbosity=debug
serial console and asm x86
 USB debug port
• Serial port requires some initialization
• Good and working asm x86 example
  could be found in kexec-tools source
  (kexec-tools/purgatory/arch/i386/console-x86.c)

• USB EHCI debug port is similart solution
  to serial console
• Linux Kernel has support for USB debug port
• There is a RFC implementation for Xen, too
• However, machines must be connect
  through special device 
How to check logs

• Linux logs:
  • /var/log/dmesg
  • /var/log/syslog
  • /var/log/messages
• Xen logs:
  • xm dmesg
  • xl dmesg
printk summary

• Simple and reliable
• Does not interfere program run
  (in contrast to e.g. gdb)
• Every change in printk debugging code requires
  recompilation and restart (time and labor consuming)
• It is quiet difficult to use printk to analyze large
  structures and complicated code
gdb

• gdb/GDB is feature rich debugger
  known as GNU Debugger
• It allows developer to do:
    •   virtual memory analysis
    •   structures analysis
    •   multithreaded processes analysis
    •   many more…
•   gdb could use scripts to automate tasks
•   gdb could be used to do remote debugging
•   gdb is core element in other debugging tools (e.g. crash)
•   gdb requiers symbols to work properly
gdb - Linux Kernel simple usage

• # gdb vmlinux /proc/kcore
  (gdb) p/x max_pfn
• This could be used only to do live memory, variables
  and structures analysis
Linux Kernel debuging
 over serial connection - kgdb
• Support for kgdb must be enabled in Linux Krenel
       /boot/vmlinuz … kgdboc=ttyS0,115200 …
• kgdb could be configured from live system by:
 # echo ttyS0 > /sys/module/kgdboc/parameters/kgdboc
• kgdb must be activated by Alt-SysRq-g or
       # echo g > /proc/sysrq-trigger
• kgdb could be activated at boot by passing
  kgdbwait to Linux Kernel, too
• # gdb vmlinux
  (gdb) set remotebaud 115200
  (gdb) target remote /dev/ttyS0
• There is another debugging feature
  in Linux Kernel known as kdb
Xen dom0 debugging
 over serial connection - GDB stub
• Boot Xen with following options:
       /boot/xen.gz … com1=115200,8n1 
             com2=115200,8n1 
                     console=com1 gdb=com2…
• Press Ctrl-a * 3 and then % on serial console
• # gdb xen-syms
  (gdb) set remotebaud 115200
  (gdb) target remote /dev/ttyS0
Xen domU debugging - gdbsx

• Start new domain as usual
• Start gdbsx
• # gdbsx -a <domid> <32|64> <port>
• # gdbsx -a 1 64 1234
• # gdb vmlinux
  (gdb) target remote :1234
• There are other Xen tools which could support
  problem solving like xenctx, xentrace
  or xl/xm dump-core
gdb summary

• gdb is powerfull tool
• gdb is quite diffcult to use especially by begginers
• …but there are some graphical frontends
  like GNU DDD
QEMU

• QEMU is a generic and open source machine emulator and
  virtualizer (http://wiki.qemu.org/Main_Page)
• Good to do some arch testing and virtualization (as is)
  but also excellent for debugging

• # qemu … -serial 
       telnet:127.0.0.1:10232,server …
• # telnet 127.0.0.1 10232

• # qemu … -debugcon 
       telnet:127.0.0.1:10233,server,nowait …
• asm x86: outb to 0xe9 port
• # telnet 127.0.0.1 10233
QEMU

• # qemu … -monitor 
       telnet:127.0.0.1:1233,server,nowait …
• # telnet 127.0.0.1 1233

• # qemu … -gdb tcp:127.0.0.1:1234 …
• # gdb vmlinux
  (gdb) target remote :1234
QEMU summary

•   Easy to use
•   A lot of debugging options to choose from
•   Fast boot (contrary e.g. rack servers)
•   Debugging is possible from ”first intruction”
•   Sometimes emulation is slow and not perfect
•   Final testing should be always done on real hardware
kdump - Xen dom0 support

• Nice tool for crash dump collection (very useful for
  support departments)
• It works under Linux Kernel since 2.6.13 version
• It is supported on a lot of architectures
• kexec/kdump for Xen dom0 is under development;
  patches will be published soon
• kexec-tools patches will be published soon
• crash tool contains all required patches (backward
  compatibility with older version of Xen and Linux is
  mainatined)
kdump - Xen domU support

• It could be useful when there is no access
  to xl/xm dump-core (e.g. some virtualization companies
  provides virtualized servers without access to dom0)
• Linux Kernel Xen dom0 changes are required
  for Xen domU kdump support
• Some Xen hypervisor changes are also required
• kexec-tools changes are required, too
• Acunu Limited sponsored work on initial domU development
  for Xen Linux Kernel Ver. 2.6.18
• Solution is ready and will be used as a base for upstream
  development
Documentation

•   linux/Documentation/sysctl/kernel.txt
•   linux/Documentation/kernel-parameters.txt
•   http://wiki.xen.org/
•   http://wiki.xen.org/wiki/Xen_Serial_Console
•   http://www.gnu.org/software/gdb/
•   http://www.gnu.org/software/ddd/
•   http://kgdb.wiki.kernel.org/
•   http://kernel.org/doc/htmldocs/kgdb.html
•   http://wiki.qemu.org/Main_Page
•   http://zhigang.org/wiki/XenDebugging
Questions and Answers ?
From printk to QEMU: Xen/Linux Kernel debugging

More Related Content

PDF
XPDDS18: Design and Implementation of Automotive: Virtualization Based on Xen...
PDF
Kdump-FUDcon-2015-Session
PDF
Xen Debugging
PDF
Kernel_Crash_Dump_Analysis
PDF
VMworld 2013: ESXi Native Networking Driver Model - Delivering on Simplicity ...
PDF
from Source to Binary: How GNU Toolchain Works
PPTX
Linux Device Tree
PDF
Linux Kernel and Driver Development Training
XPDDS18: Design and Implementation of Automotive: Virtualization Based on Xen...
Kdump-FUDcon-2015-Session
Xen Debugging
Kernel_Crash_Dump_Analysis
VMworld 2013: ESXi Native Networking Driver Model - Delivering on Simplicity ...
from Source to Binary: How GNU Toolchain Works
Linux Device Tree
Linux Kernel and Driver Development Training

What's hot (20)

PPTX
Linux MMAP & Ioremap introduction
PDF
Uboot startup sequence
PDF
PCI Drivers
PDF
Process Scheduler and Balancer in Linux Kernel
PDF
Performance Wins with eBPF: Getting Started (2021)
PDF
How to use KASAN to debug memory corruption in OpenStack environment- (2)
PDF
Achieving the ultimate performance with KVM
PPTX
Linux Network Stack
PDF
Building Network Functions with eBPF & BCC
PPT
U Boot or Universal Bootloader
PDF
Systems@Scale 2021 BPF Performance Getting Started
PDF
XPDS13: Xen in OSS based In–Vehicle Infotainment Systems - Artem Mygaiev, Glo...
PPTX
The TCP/IP Stack in the Linux Kernel
PDF
Kdump and the kernel crash dump analysis
PDF
eBPF Perf Tools 2019
PDF
Xen and the art of embedded virtualization (ELC 2017)
PDF
BPF: Tracing and more
PDF
TC Flower Offload
PDF
Provisioning Bare Metal with OpenStack
PDF
BPF Internals (eBPF)
Linux MMAP & Ioremap introduction
Uboot startup sequence
PCI Drivers
Process Scheduler and Balancer in Linux Kernel
Performance Wins with eBPF: Getting Started (2021)
How to use KASAN to debug memory corruption in OpenStack environment- (2)
Achieving the ultimate performance with KVM
Linux Network Stack
Building Network Functions with eBPF & BCC
U Boot or Universal Bootloader
Systems@Scale 2021 BPF Performance Getting Started
XPDS13: Xen in OSS based In–Vehicle Infotainment Systems - Artem Mygaiev, Glo...
The TCP/IP Stack in the Linux Kernel
Kdump and the kernel crash dump analysis
eBPF Perf Tools 2019
Xen and the art of embedded virtualization (ELC 2017)
BPF: Tracing and more
TC Flower Offload
Provisioning Bare Metal with OpenStack
BPF Internals (eBPF)
Ad

Viewers also liked (12)

PDF
Using QEMU for cross development
PDF
Advanced Tracing features using GDB and LTTng
PDF
Debugger Principle Overview & GDB Tricks
PDF
LAS16-403: GDB Linux Kernel Awareness
PPTX
Advanced Debugging with GDB
PDF
Q2.12: Debugging with GDB
PDF
kubernetes, pourquoi et comment
PDF
GDB Rocks!
PDF
Développement informatique : Gestion de projet, versioning, debugging, testin...
PDF
TIP1 - Overview of C/C++ Debugging/Tracing/Profiling Tools
PDF
Linux User Space Debugging & Profiling
PDF
An Introduction to Kubernetes
Using QEMU for cross development
Advanced Tracing features using GDB and LTTng
Debugger Principle Overview & GDB Tricks
LAS16-403: GDB Linux Kernel Awareness
Advanced Debugging with GDB
Q2.12: Debugging with GDB
kubernetes, pourquoi et comment
GDB Rocks!
Développement informatique : Gestion de projet, versioning, debugging, testin...
TIP1 - Overview of C/C++ Debugging/Tracing/Profiling Tools
Linux User Space Debugging & Profiling
An Introduction to Kubernetes
Ad

Similar to From printk to QEMU: Xen/Linux Kernel debugging (20)

PPT
Linux Kernel Debugging
PDF
Lecture 6 Kernel Debugging + Ports Development
PDF
ELC-E Linux Awareness
PDF
Linux kernel debugging
PDF
PDF
LAS16-403 - GDB Linux Kernel Awareness
PDF
XS Boston 2008 Debugging Xen
PDF
Project ACRN system debug
PDF
kexec / kdump implementation in Linux Kernel and Xen hypervisor
PDF
Development platform virtualization using qemu
PDF
Solaris Kernel Debugging V1.0
PDF
Module 4 Embedded Linux
PDF
An Introduction To Linux
PDF
qemu + gdb: The efficient way to understand/debug Linux kernel code/data stru...
PDF
QEMU in Cross building
PDF
Introduction to linux
PDF
Android Variants, Hacks, Tricks and Resources
PDF
Kernel debug log and console on openSUSE
PPT
Basic Linux Internals
Linux Kernel Debugging
Lecture 6 Kernel Debugging + Ports Development
ELC-E Linux Awareness
Linux kernel debugging
LAS16-403 - GDB Linux Kernel Awareness
XS Boston 2008 Debugging Xen
Project ACRN system debug
kexec / kdump implementation in Linux Kernel and Xen hypervisor
Development platform virtualization using qemu
Solaris Kernel Debugging V1.0
Module 4 Embedded Linux
An Introduction To Linux
qemu + gdb: The efficient way to understand/debug Linux kernel code/data stru...
QEMU in Cross building
Introduction to linux
Android Variants, Hacks, Tricks and Resources
Kernel debug log and console on openSUSE
Basic Linux Internals

More from The Linux Foundation (20)

PDF
ELC2019: Static Partitioning Made Simple
PDF
XPDDS19: How TrenchBoot is Enabling Measured Launch for Open-Source Platform ...
PDF
XPDDS19 Keynote: Xen in Automotive - Artem Mygaiev, Director, Technology Solu...
PDF
XPDDS19 Keynote: Xen Project Weather Report 2019 - Lars Kurth, Director of Op...
PDF
XPDDS19 Keynote: Unikraft Weather Report
PDF
XPDDS19 Keynote: Secret-free Hypervisor: Now and Future - Wei Liu, Software E...
PDF
XPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, Xilinx
PDF
XPDDS19 Keynote: Patch Review for Non-maintainers - George Dunlap, Citrix Sys...
PDF
XPDDS19: Memories of a VM Funk - Mihai Donțu, Bitdefender
PPTX
OSSJP/ALS19: The Road to Safety Certification: Overcoming Community Challeng...
PPTX
OSSJP/ALS19: The Road to Safety Certification: How the Xen Project is Making...
PDF
XPDDS19: Speculative Sidechannels and Mitigations - Andrew Cooper, Citrix
PDF
XPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltd
PDF
XPDDS19: QEMU PV Backend 'qdevification'... What Does it Mean? - Paul Durrant...
PDF
XPDDS19: Status of PCI Emulation in Xen - Roger Pau Monné, Citrix Systems R&D
PDF
XPDDS19: [ARM] OP-TEE Mediator in Xen - Volodymyr Babchuk, EPAM Systems
PDF
XPDDS19: Bringing Xen to the Masses: The Story of Building a Community-driven...
PDF
XPDDS19: Will Robots Automate Your Job Away? Streamlining Xen Project Contrib...
PDF
XPDDS19: Client Virtualization Toolstack in Go - Nick Rosbrook & Brendan Kerr...
PDF
XPDDS19: Core Scheduling in Xen - Jürgen Groß, SUSE
ELC2019: Static Partitioning Made Simple
XPDDS19: How TrenchBoot is Enabling Measured Launch for Open-Source Platform ...
XPDDS19 Keynote: Xen in Automotive - Artem Mygaiev, Director, Technology Solu...
XPDDS19 Keynote: Xen Project Weather Report 2019 - Lars Kurth, Director of Op...
XPDDS19 Keynote: Unikraft Weather Report
XPDDS19 Keynote: Secret-free Hypervisor: Now and Future - Wei Liu, Software E...
XPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, Xilinx
XPDDS19 Keynote: Patch Review for Non-maintainers - George Dunlap, Citrix Sys...
XPDDS19: Memories of a VM Funk - Mihai Donțu, Bitdefender
OSSJP/ALS19: The Road to Safety Certification: Overcoming Community Challeng...
OSSJP/ALS19: The Road to Safety Certification: How the Xen Project is Making...
XPDDS19: Speculative Sidechannels and Mitigations - Andrew Cooper, Citrix
XPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltd
XPDDS19: QEMU PV Backend 'qdevification'... What Does it Mean? - Paul Durrant...
XPDDS19: Status of PCI Emulation in Xen - Roger Pau Monné, Citrix Systems R&D
XPDDS19: [ARM] OP-TEE Mediator in Xen - Volodymyr Babchuk, EPAM Systems
XPDDS19: Bringing Xen to the Masses: The Story of Building a Community-driven...
XPDDS19: Will Robots Automate Your Job Away? Streamlining Xen Project Contrib...
XPDDS19: Client Virtualization Toolstack in Go - Nick Rosbrook & Brendan Kerr...
XPDDS19: Core Scheduling in Xen - Jürgen Groß, SUSE

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Encapsulation theory and applications.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Approach and Philosophy of On baking technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
Electronic commerce courselecture one. Pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Encapsulation theory and applications.pdf
Network Security Unit 5.pdf for BCA BBA.
The Rise and Fall of 3GPP – Time for a Sabbatical?
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
NewMind AI Weekly Chronicles - August'25-Week II
MYSQL Presentation for SQL database connectivity
20250228 LYD VKU AI Blended-Learning.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Digital-Transformation-Roadmap-for-Companies.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Big Data Technologies - Introduction.pptx
Approach and Philosophy of On baking technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
The AUB Centre for AI in Media Proposal.docx
Per capita expenditure prediction using model stacking based on satellite ima...

From printk to QEMU: Xen/Linux Kernel debugging

  • 2. <Insert Picture Here> From printk to QEMU: Xen/Linux Kernel debugging Daniel Kiper - [email protected]
  • 3. Presentation plan • printk and companions • gdb • kgdb, GDB stub, … • QEMU • kdump • Documentation • Questions and Answers
  • 4. printk usage … printk(KERN_DEBUG ”Something went wrongn”) … • Linux Kernel has some useful abreviations: pr_info(), pr_debug(), … • … and pr_info_once(), pr_debug_once(), … • All functions/macros accept most of standard C printf() format strings • /proc/sys/kernel/printk controls log levels
  • 5. serial console scenario Null modem connection Debugging host Debugged target
  • 6. printk and Linux serial/early console • printk output is send usualy to graphic card by default • This behavior is not very useful for debugging because output may disappear • Serial console is a solution in this case • Linux Kernel serial console activation: /boot/vmlinuz … console=ttyS0,115200n8 … • Linux Kernel early console activation: /boot/vmlinuz … earlyprintk=ttyS0,115200 … • Other useful Linux Kernel logging options: • debug • loglevel=<0-7>
  • 7. printk and Xen serial console • Xen serial console activation: /boot/xen.gz … com1=115200,8n1 console=com1 … • Other Xen useful logging options: • sync_console • console_to_ring • loglvl=all • guest_loglvl=all • apic_verbosity=debug
  • 8. serial console and asm x86 USB debug port • Serial port requires some initialization • Good and working asm x86 example could be found in kexec-tools source (kexec-tools/purgatory/arch/i386/console-x86.c) • USB EHCI debug port is similart solution to serial console • Linux Kernel has support for USB debug port • There is a RFC implementation for Xen, too • However, machines must be connect through special device 
  • 9. How to check logs • Linux logs: • /var/log/dmesg • /var/log/syslog • /var/log/messages • Xen logs: • xm dmesg • xl dmesg
  • 10. printk summary • Simple and reliable • Does not interfere program run (in contrast to e.g. gdb) • Every change in printk debugging code requires recompilation and restart (time and labor consuming) • It is quiet difficult to use printk to analyze large structures and complicated code
  • 11. gdb • gdb/GDB is feature rich debugger known as GNU Debugger • It allows developer to do: • virtual memory analysis • structures analysis • multithreaded processes analysis • many more… • gdb could use scripts to automate tasks • gdb could be used to do remote debugging • gdb is core element in other debugging tools (e.g. crash) • gdb requiers symbols to work properly
  • 12. gdb - Linux Kernel simple usage • # gdb vmlinux /proc/kcore (gdb) p/x max_pfn • This could be used only to do live memory, variables and structures analysis
  • 13. Linux Kernel debuging over serial connection - kgdb • Support for kgdb must be enabled in Linux Krenel /boot/vmlinuz … kgdboc=ttyS0,115200 … • kgdb could be configured from live system by: # echo ttyS0 > /sys/module/kgdboc/parameters/kgdboc • kgdb must be activated by Alt-SysRq-g or # echo g > /proc/sysrq-trigger • kgdb could be activated at boot by passing kgdbwait to Linux Kernel, too • # gdb vmlinux (gdb) set remotebaud 115200 (gdb) target remote /dev/ttyS0 • There is another debugging feature in Linux Kernel known as kdb
  • 14. Xen dom0 debugging over serial connection - GDB stub • Boot Xen with following options: /boot/xen.gz … com1=115200,8n1 com2=115200,8n1 console=com1 gdb=com2… • Press Ctrl-a * 3 and then % on serial console • # gdb xen-syms (gdb) set remotebaud 115200 (gdb) target remote /dev/ttyS0
  • 15. Xen domU debugging - gdbsx • Start new domain as usual • Start gdbsx • # gdbsx -a <domid> <32|64> <port> • # gdbsx -a 1 64 1234 • # gdb vmlinux (gdb) target remote :1234 • There are other Xen tools which could support problem solving like xenctx, xentrace or xl/xm dump-core
  • 16. gdb summary • gdb is powerfull tool • gdb is quite diffcult to use especially by begginers • …but there are some graphical frontends like GNU DDD
  • 17. QEMU • QEMU is a generic and open source machine emulator and virtualizer (http://wiki.qemu.org/Main_Page) • Good to do some arch testing and virtualization (as is) but also excellent for debugging • # qemu … -serial telnet:127.0.0.1:10232,server … • # telnet 127.0.0.1 10232 • # qemu … -debugcon telnet:127.0.0.1:10233,server,nowait … • asm x86: outb to 0xe9 port • # telnet 127.0.0.1 10233
  • 18. QEMU • # qemu … -monitor telnet:127.0.0.1:1233,server,nowait … • # telnet 127.0.0.1 1233 • # qemu … -gdb tcp:127.0.0.1:1234 … • # gdb vmlinux (gdb) target remote :1234
  • 19. QEMU summary • Easy to use • A lot of debugging options to choose from • Fast boot (contrary e.g. rack servers) • Debugging is possible from ”first intruction” • Sometimes emulation is slow and not perfect • Final testing should be always done on real hardware
  • 20. kdump - Xen dom0 support • Nice tool for crash dump collection (very useful for support departments) • It works under Linux Kernel since 2.6.13 version • It is supported on a lot of architectures • kexec/kdump for Xen dom0 is under development; patches will be published soon • kexec-tools patches will be published soon • crash tool contains all required patches (backward compatibility with older version of Xen and Linux is mainatined)
  • 21. kdump - Xen domU support • It could be useful when there is no access to xl/xm dump-core (e.g. some virtualization companies provides virtualized servers without access to dom0) • Linux Kernel Xen dom0 changes are required for Xen domU kdump support • Some Xen hypervisor changes are also required • kexec-tools changes are required, too • Acunu Limited sponsored work on initial domU development for Xen Linux Kernel Ver. 2.6.18 • Solution is ready and will be used as a base for upstream development
  • 22. Documentation • linux/Documentation/sysctl/kernel.txt • linux/Documentation/kernel-parameters.txt • http://wiki.xen.org/ • http://wiki.xen.org/wiki/Xen_Serial_Console • http://www.gnu.org/software/gdb/ • http://www.gnu.org/software/ddd/ • http://kgdb.wiki.kernel.org/ • http://kernel.org/doc/htmldocs/kgdb.html • http://wiki.qemu.org/Main_Page • http://zhigang.org/wiki/XenDebugging