From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CSKa8-0006YI-Oc for qemu-devel@nongnu.org; Thu, 11 Nov 2004 14:26:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CSKa8-0006Xy-3s for qemu-devel@nongnu.org; Thu, 11 Nov 2004 14:26:08 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSKa7-0006Xo-W5 for qemu-devel@nongnu.org; Thu, 11 Nov 2004 14:26:08 -0500 Received: from [195.184.98.160] (helo=virtualhost.dk) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CSKRX-0007Pm-UZ for qemu-devel@nongnu.org; Thu, 11 Nov 2004 14:17:16 -0500 Received: from [62.242.22.158] (helo=zx2000.home.kernel.dk) by virtualhost.dk with esmtp (Exim 3.36 #1) id 1CSKRa-0001c1-00 for qemu-devel@nongnu.org; Thu, 11 Nov 2004 20:17:18 +0100 Received: from axboe by zx2000.home.kernel.dk with local (Exim 4.30) id 1CSKR5-0003Cc-EO for qemu-devel@nongnu.org; Thu, 11 Nov 2004 20:16:47 +0100 Date: Thu, 11 Nov 2004 20:16:47 +0100 From: Jens Axboe Subject: Re: [Qemu-devel] enabling bus-master IDE driver Message-ID: <20041111191647.GF11488@suse.de> 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> <4193B738.70106@brittainweb.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4193B738.70106@brittainweb.org> Sender: Jens Axboe 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 On Thu, Nov 11 2004, Jason Brittain wrote: > 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. Ah thanks, I'll apply the fix and attempt a new install. -- Jens Axboe