[Qemu-devel] Using qemu to debug arm64 linux kernel

Xuebing wang xbing6 at gmail.com
Mon Mar 3 04:28:41 EST 2014


Hi community,

I can think of 2 ways to use gdb+qemu to remotely debug arm64 kernel, by 
enabling gdbstub within qemu to communicate with gdb.

I am wondering in the real-world practice, is this debug technique 
helpful for debugging arm64 kernel?

Options are:

1) Host environment: qemu is running as kvm hypervisor

i) armv8 foundation model running arm64 kernel
ii) or a real armv8 Linux machine running arm64 kernel

Qemu guest environment: arm64 kernel

2) Host environment: x86 linux machine running qemu as tcg aarch64 emulator

Qemu guest environment: arm64 kernel

Prerequisite: qemu-aarch64 needs to be reliable.

-- Thanks,
Xuebing Wang



More information about the linux-arm-kernel mailing list