Blue Swirl wrote: > On 4/5/08, Anthony Liguori <[EMAIL PROTECTED]> wrote: > >> This patch introduces a PCI DMA API and some generic code to support other >> DMA >> APIs. It introduces a IOVector type that contains physical address/length >> pairs. These vectors can be translated by the PCI layer and passed either >> to >> generic copying functions or directly to the block or network subsystems. >> > > But cpu_map_physical_page can't be the correct function for > translation for every case.
cpu_map_physical_page is the last function you call after you have already translated the IOVector however many times you need to. It's only used within the IO infrastructure (net, block) which are passed fully translated IOVectors. > To support Sparc IOMMU and DMA controller > I need a way to call a series of different translation functions > depending on the bus where we are. For the byte swapping case the > memcpy functions must be dynamic as well. > Does DMA really byte-swap? I know PCI controllers byte swap within the configuration space but I didn't think they byte-swapped DMA transfers. I'm not even sure how that would work. Regards, Anthony Liguori > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Register now and save $200. Hurry, offer ends at 11:59 p.m., > Monday, April 7! Use priority code J8TLD2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > kvm-devel mailing list > kvm-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/kvm-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel