From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CQG5J-0006tj-OA for qemu-devel@nongnu.org; Fri, 05 Nov 2004 21:13:45 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CQG5J-0006tT-4E for qemu-devel@nongnu.org; Fri, 05 Nov 2004 21:13:45 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CQG5J-0006tJ-0R for qemu-devel@nongnu.org; Fri, 05 Nov 2004 21:13:45 -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 1CQFx2-0001CL-Tn for qemu-devel@nongnu.org; Fri, 05 Nov 2004 21:05:13 -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 iA622f1W007678 for ; Fri, 5 Nov 2004 18:02:42 -0800 Message-ID: <418C2E7D.2040609@brittainweb.org> Date: Fri, 05 Nov 2004 17:53:01 -0800 From: Jason Brittain MIME-Version: 1.0 Subject: Re: [Qemu-devel] enabling bus-master IDE driver References: <1099661520.418b80d07e377@imp5-q.free.fr> <1099666965.418b9615bb36d@imp5-q.free.fr> In-Reply-To: <1099666965.418b9615bb36d@imp5-q.free.fr> 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 zitu wrote: > Quoting zitu : > >>>Does that mean that the patch doesn't work? Do I have to do something else >>>to make dma work? >> >>I think this patch is almost complete for linux and solaris guests. Some >>more work/init is needed inside XP/NT/2K. Anyone around with this >>knowledge ? > > answering to myself... :) > > WIN_WRITEDMA_EXT & WIN_READDMA_EXT cases are not defined in hw/ide.c > I have no idea where to start to write a patch for these... :( > > Until these and the atapi_dma are set/defined, no dma should work IMHO. > And this seems not to be OS dependant. > > Which means the linux figures I got were wrong ??? My Linux (kernel 2.6) guest's disk seems slow too. I applied the DMA patch, and at first it seemed faster (it may be a bit faster). But, I tried using hdparm -d1 /dev/hda to make sure DMA was turned on in the guest Linux and it said: /dev/hda: setting using_dma to 1 (on) HDIO_SET_DMA failed: Operation not permitted using_dma = 0 (off) So I'm pretty sure DMA doesn't work with this patch even with a Linux guest -- at least in my setup. -- Jason Brittain