From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harald Braumann Subject: Single-stepping real-mode does not work Date: Sat, 14 Jul 2012 12:52:47 +0200 Message-ID: <20120714105247.GA24960@nn.nn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: kvm@vger.kernel.org Return-path: Received: from ns.km10614-05.keymachine.de ([87.118.102.170]:48631 "EHLO km10614-05.keymachine.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752955Ab2GNLDB (ORCPT ); Sat, 14 Jul 2012 07:03:01 -0400 Received: from nn.nn (unknown [88.151.75.160]) by km10614-05.keymachine.de (Postfix) with ESMTPSA id 818C1154C003 for ; Sat, 14 Jul 2012 12:52:49 +0200 (CEST) Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: (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