From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=53189 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5cQ7-0004Hw-Fx for qemu-devel@nongnu.org; Fri, 01 Apr 2011 07:21:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5cQ6-00083V-EX for qemu-devel@nongnu.org; Fri, 01 Apr 2011 07:21:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5cQ6-00083P-05 for qemu-devel@nongnu.org; Fri, 01 Apr 2011 07:21:38 -0400 Date: Fri, 1 Apr 2011 14:21:16 +0300 From: "Michael S. Tsirkin" Subject: Re: [Qemu-devel] [PATCH RFC] vga: flag vga ram for notifiers Message-ID: <20110401112115.GA4666@redhat.com> References: <4D94C916.6080709@codemonkey.ws> <20110331184940.GA25688@redhat.com> <4D94CFA0.3030605@codemonkey.ws> <4D94D62E.2060206@codemonkey.ws> <4D94E2A7.80700@codemonkey.ws> <20110331213849.GB27264@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Alex Williamson , qemu-devel@nongnu.org On Fri, Apr 01, 2011 at 08:12:48AM +0100, Peter Maydell wrote: > On 31 March 2011 22:38, Michael S. Tsirkin wrote: > > On Thu, Mar 31, 2011 at 10:32:11PM +0100, Peter Maydell wrote: > >> On 31 March 2011 21:23, Anthony Liguori wrote: > >> > Maybe the right approach here is to just use a virtio specific API and > >> > register RAM as register_virtio_dma_area(). > >> > >> That seems like a clearer API, yes. I think it makes it much more > >> obvious what it's trying to achieve. > > > Maybe register_dma_area - its' not 100% virtio specific. > > Presumably it is specific to virtualisation-aware devices > though? Guest DMA has to just work to all the locations you > can DMA to/from on hardware, right? > > -- PMM I guess so, yes. But it might not be possible e.g. for a PCI device to DMA into an ISA device. -- MST