From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzPFs-0001SU-RI for qemu-devel@nongnu.org; Fri, 02 Sep 2011 04:37:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QzPFr-0003US-Se for qemu-devel@nongnu.org; Fri, 02 Sep 2011 04:37:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzPFr-0003Tr-Jv for qemu-devel@nongnu.org; Fri, 02 Sep 2011 04:37:39 -0400 Message-ID: <4E6095C5.7050500@redhat.com> Date: Fri, 02 Sep 2011 11:37:25 +0300 From: Avi Kivity MIME-Version: 1.0 References: <1314853263-2086-1-git-send-email-david@gibson.dropbear.id.au> <1314853263-2086-2-git-send-email-david@gibson.dropbear.id.au> <4E5FAADF.1040704@us.ibm.com> <4E5FACD6.9000603@redhat.com> <4E5FAD5C.4090208@codemonkey.ws> In-Reply-To: <4E5FAD5C.4090208@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 01/10] Add stub functions for PCI device models to do PCI DMA List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Anthony Liguori , joerg.roedel@amd.com, agraf@suse.de, qemu-devel@nongnu.org, eduard.munteanu@linux360.ro, rth@twiddle.net, David Gibson On 09/01/2011 07:05 PM, Anthony Liguori wrote: > > The challenge is what you do about something like ne2k where the core > chipset can either be a PCI device or an ISA device. You would have > to implement a wrapper around pci_dma_rw() in order to turn it into > cpu_physical_memory_rw when doing ISA. btw, ISA DMA is very different, no? You program a dma controller to copy memory from the device to RAM (or vice versa); the device never initiates a transaction IIRC. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.