From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CSXA5-0001IT-N0 for qemu-devel@nongnu.org; Fri, 12 Nov 2004 03:52:06 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CSXA3-0001Hr-Ia for qemu-devel@nongnu.org; Fri, 12 Nov 2004 03:52:03 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSXA2-0001Hn-W1 for qemu-devel@nongnu.org; Fri, 12 Nov 2004 03:52:03 -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 1CSX1F-0001Q0-BN for qemu-devel@nongnu.org; Fri, 12 Nov 2004 03:42:58 -0500 Received: from [62.242.22.158] (helo=zx2000.home.kernel.dk) by virtualhost.dk with esmtp (Exim 3.36 #1) id 1CSX1F-0005Nd-00 for qemu-devel@nongnu.org; Fri, 12 Nov 2004 09:42:57 +0100 Received: from axboe by zx2000.home.kernel.dk with local (Exim 4.30) id 1CSX0m-0003fB-Hk for qemu-devel@nongnu.org; Fri, 12 Nov 2004 09:42:28 +0100 Date: Fri, 12 Nov 2004 09:42:28 +0100 From: Jens Axboe Subject: Re: [Qemu-devel] enabling bus-master IDE driver Message-ID: <20041112084228.GR11488@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> <20041111191647.GF11488@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041111191647.GF11488@suse.de> 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, Jens Axboe wrote: > 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. XP now installs, but gives me a license warning on the first boot. Something like 'An error has prevented windows from verifying the correctness of the license - error code 0x800703e6' -- Jens Axboe