On Fri, Apr 01, 2011 at 08:12:48AM +0100, Peter Maydell wrote: > On 31 March 2011 22:38, Michael S. Tsirkin <m...@redhat.com> wrote: > > On Thu, Mar 31, 2011 at 10:32:11PM +0100, Peter Maydell wrote: > >> On 31 March 2011 21:23, Anthony Liguori <anth...@codemonkey.ws> 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