Il 30/07/2016 03:47, Olaf Buddenhagen ha scritto: > On Fri, Jul 29, 2016 at 06:30:09PM +0000, Luca wrote: > >> I need a way to translate logical addresses to physical, > > Is this for DMA or something along these lines? If so, the interface for > allocating "contiguous memory" that was added for the purpose of DDE > should work here as well I'd presume. > > (I didn't like how the original interface was designed specifically, and > I don't know whether in has been improved since -- but regardless, it > should get the job done...) > > If it doesn't cut it, or this is about something else entirely, could > you elaborate please? >
The contiguous memory allocation interface is not enough. I mean, at least in the virtio ld driver, there are some addresses that must be translated which are not allocated with vm_allocate_contiguous. However I did not investigate in detail why this is needed. Luca
signature.asc
Description: OpenPGP digital signature