From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uri Lublin Subject: Re: Is there any way to get Windbg to work with QEMU/KVM? Date: Thu, 13 Dec 2007 11:35:38 +0200 Message-ID: <4760FCEA.4040808@qumranet.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel To: duck-j34lQMj1tz/QT0dZR+AlfA@public.gmane.org Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org duck-j34lQMj1tz/QT0dZR+AlfA@public.gmane.org wrote: > G'day folks. > > After blindly trying applying an oldish QEMU patch mentioned here > (http://www.damogran.de/blog/archives/14-WinDbg-and-QEMU.html) I got ever > so slightly further, to the point that I reached the Windbg command prompt > and could enter commands (e.g. '.dl'). All I got back were sporadic errors > such as "couldn't find KTHREAD entry at blah" and other "it's nae workin' > cap'n" sort of messages. > > Can it be made to work? Others seem to have claimed to have done it. Seems > I am so near but so far! > Try hacking qemu/qemu-kvm.c:pre_kvm_run() with something like that: +#if 1 +#define MIN_CYCLE_COUNT 100 + { + static int cycle_count; + + if (++cycle_count > MIN_CYCLE_COUNT) { + cycle_count = 0; + return 1; + } + } +#endif ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace