From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicholas Amon Subject: Re: Unable to single-step in kvm, always results in a resume Date: Wed, 20 Jan 2010 09:34:21 -0500 Message-ID: <4B57146D.9000703@xceedium.com> References: <4B55C05D.6030408@xceedium.com> <4B55CBA8.6040306@siemens.com> <4B55CBFF.5030900@siemens.com> <4B566CB5.7080804@xceedium.com> <4B56D62D.3060106@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm To: Jan Kiszka Return-path: Received: from 66-243-76-94.focaldata.net ([66.243.76.94]:2122 "EHLO mail.xceedium.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752646Ab0ATO3A (ORCPT ); Wed, 20 Jan 2010 09:29:00 -0500 Received: from amon.xceedium.com by mail.xceedium.com (MDaemon PRO v9.6.3) with ESMTP id md50000619840.msg for ; Wed, 20 Jan 2010 09:29:20 -0500 In-Reply-To: <4B56D62D.3060106@siemens.com> Sender: kvm-owner@vger.kernel.org List-ID: Thanks Jan. That fixed it. Nicholas Jan Kiszka wrote: > Hi Nicholas, > > please don't drop CCs on reply. > > Nicholas Amon wrote: > >> Hi Jan, >> >> Thanks for responding. Yes, I am able to step instruction when I >> disable kvm w/ the no-kvm option. My host kernel is 64bit 2.6.27 and >> the program that I am debugging is 32 bit but starts in real mode. But >> the KVM module I am running is from kvm-88. Is there anyway I can check >> the version definitively? >> > > kvm modules issue a message when being loaded, check your kernel log. > qemu-kvm gives you the version via -version. > > OK, the problems you see is likely related to the very old versions you > use. Update to recent kvm-kmod (2.6.32 series) and qemu-kvm (0.12 > series) and retry. > > Jan > > >> Thanks, >> >> Nicholas >> >> Jan Kiszka wrote: >> >>> Jan Kiszka wrote: >>> >>> >>>> Nicholas Amon wrote: >>>> >>>> >>>>> Hi All, >>>>> >>>>> I am trying to single-step through my kernel using qemu and kvm. I have >>>>> run qemu via: qemu-system-x86_64 -s -S -hda >>>>> /home/nickamon/lab1/obj/kernel.img and also connected to the process >>>>> using gdb. >>>>> >>>>> Problem is that whenever I try and step instruction, it seems to resume >>>>> my kernel rather than allowing me to progress instruction by >>>>> instruction. I have built the kvm snapshot from git and still no luck. >>>>> Tried following the code for a few hours and have no luck. Any >>>>> suggestions? >>>>> >>>>> >>>> What's you host kernel or kvm-kmod version? >>>> >>>> >>>> >>> ...and does -no-kvm make any difference (except that it's much slower)? >>> >>> Jan >>> >>> >>> > > -- Nicholas Amon Senior Software Engineer Xceedium Inc. Office: 201-536-1000 x127 Cell: 732-236-7698 namon@Xceedium.com See How to Control & Track High-Risk Users: Join our Webinar on Tuesday, June 2 Network World Names Xceedium GateKeeper "RSA 2009 Best of Show"