From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CSKYE-0006Eb-3l for qemu-devel@nongnu.org; Thu, 11 Nov 2004 14:24:10 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CSKYD-0006E9-Dx for qemu-devel@nongnu.org; Thu, 11 Nov 2004 14:24:09 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSKYD-0006Dw-9R for qemu-devel@nongnu.org; Thu, 11 Nov 2004 14:24:09 -0500 Received: from [66.124.73.250] (helo=marvin.brittainweb.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CSKPR-000779-Op for qemu-devel@nongnu.org; Thu, 11 Nov 2004 14:15:06 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) by marvin.brittainweb.org (8.12.8/8.12.8) with ESMTP id iABJBu1W014794 for ; Thu, 11 Nov 2004 11:11:57 -0800 Message-ID: <4193B738.70106@brittainweb.org> Date: Thu, 11 Nov 2004 11:02:16 -0800 From: Jason Brittain MIME-Version: 1.0 Subject: Re: [Qemu-devel] enabling bus-master IDE driver References: <20041107092132.GC29120@suse.de> <20041107093842.GD29120@suse.de> <200411071301.37636.hetz@softier.com> <20041107111655.GG29120@suse.de> <4193A177.1030308@brittainweb.org> <20041111190649.GE11488@suse.de> In-Reply-To: <20041111190649.GE11488@suse.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Jens Axboe wrote: > On Thu, Nov 11 2004, Jason Brittain wrote: > >>I just pulled the latest source from CVS (today's), and tried >>looking at DMA again. >> >>Host: Linux 2.6 (Fedora Core 2) >>Guest: XP corp. >>It still says the primary IDE channel is in PIO mode, and >>doesn't seem any faster. >> >>Host: Linux 2.6 (Fedora Core 2) >>Guest: Linux 2.6 >>hdparm now reports that DMA is on for /dev/hda, and I can also >>turn it on and off. With it on, it's about twice as fast as >>it is with it off. So, this seems to work. > > > If I could install XP, I could take a look. But it will boot for me > after install, just hangs. If I restart qemu, it complains about a bad > boot loader. > > If I get time I'll look into this. That's a known problem that aparently still isn't fixed in CVS. To fix it, apply this patch to your ide.c: --- hw/ide.c-bad 2004-11-11 07:54:34.000000000 -0800 +++ hw/ide.c 2004-11-11 08:56:23.000000000 -0800 @@ -1895,7 +1895,7 @@ s->heads = 16; s->sectors = 63; } - bdrv_set_geometry_hint(s->bs, s->cylinders, s->heads, s->sectors); + /*bdrv_set_geometry_hint(s->bs, s->cylinders, s->heads, s->sectors);*/ } if (bdrv_get_type_hint(s->bs) == BDRV_TYPE_CDROM) { s->is_cdrom = 1; And, then you must reinstall XP in a new hd image. Old images are apparently corrupted, and will not work even with a patched qemu binary. I now keep my qemu patched this way and my XP boots fine. -- Jason Brittain