From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dor Laor Subject: Re: Issues while "Debugging Windows Kernel" running on KVM Date: Thu, 21 Aug 2008 16:47:38 +0300 Message-ID: <48AD71FA.2000200@il.qumranet.com> References: <7D0189F5BE1DF549A570B212D1D561210FA7C8@bgsmsx412.gar.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: "Muppana, Bhaskar" Return-path: Received: from il.qumranet.com ([212.179.150.194]:41428 "EHLO il.qumranet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754608AbYHUNrZ (ORCPT ); Thu, 21 Aug 2008 09:47:25 -0400 In-Reply-To: <7D0189F5BE1DF549A570B212D1D561210FA7C8@bgsmsx412.gar.corp.intel.com> Sender: kvm-owner@vger.kernel.org List-ID: Can you try http://kvm.qumranet.com/kvmwiki/WindowsGuestDebug You can use windows host as a VM too. Since (in the past) there was a problem with the virtual serial polling you can use -no-kvm and the qemu patch, as described in the wiki. Good luck, Dor. Muppana, Bhaskar wrote: > Hi, > > I am facing issues while trying to debug Windows XP kernel running on > top of Linux KVM. > > I have to debug Windows XP kernel running in a VM. I have dedicated > ttyS0 on the host to the guest. I am using the following command to > bring up Windows VM. > > > /usr/local/kvm/bin/qemu-system-x86_64 \ > -hda /opt/vdisk.img \ > -boot c \ > -m 512 \ > -net nic,model=rtl8139,macaddr=52:54:00:12:34:56 \ > -net tap,ifname=qtap0,script=no \ > -smp 1 \ > -usb \ > -usbdevice tablet \ > -localtime \ > -serial /dev/ttyS0 > > > > I have another machine, running Windows XP, connected to the Linux host > through serial cable. > > -------- > |Windows | > | VM | > |(target)| > -------- > --------------- ---------------- > | Windows Host | ----------------- | Linux with KVM | > --------------- ---------------- > > I am able to send messages between Windows host and target through > serial ports (tested using windows power shell). But, I am not able to > use Win DBG (Kernel Debugger) in host to connect to target. Target is > getting stuck while booting. > > Debug enabled Windows entry in boot.ini: > > multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP > Professional" /fastdetect /debugport=COM1 /baudrate=115200 > > > Can someone please help me regarding this? > > > > Thanks, > Bhaskar > > > > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >