Skip to contentSkip to conversation

Single-stepping real-mode does not work

DISCUSSION Harald Braumann 1 participant 1 message Jul 14, 2012 KVM

lore
Share & tools
lore
#0 lore raw

(please CC, since I'm not subscribed)

Hi,

trying to debug some BIOS code, but single-stepping through real-mode doesn't work. It always continues, instead of breaking after the next instruction.

So I wanted to know, if there are known issues, or if this is supposed to work.

CPU: AMD FX
QEMU: latest from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git
Linux: latest from
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

I start QEMU with qemu-system-x86_64 -S -s', connect gdb and use the stepi' command. But instead of executing one instruction and breaking, it just continues the programme.

If I start QEMU with `-no-kvm', it works. So the problem seems to be in the kvm module.

Cheers,
harry