On Sat, 2017-02-18 at 18:03 +1300, Dale Corlett wrote: > Hi, > > For DMA, do I need to give the card physical addresses or are the > virtual addresses I get from spdk_malloc allowed due to the vfio > virtualization? Note that spdk_malloc returns the virtual address and the physical address of the memory. Which one you need depends on your device. The vast majority of PCI devices operate on physical/bus addresses. The Netlist card should have defined this in its hardware specification. > If I need to use physical address, should I use the spdk_vtophys > function? > I have tried using the spdk_vtophys function but I get the "could not > find 2MB 0x*somenumber* in DPDK mem config" error, does this mean > that I need to some how configure DPDK? Again, spdk_malloc returned the physical address when you called it in the phys_addr parameter. > > Thanks, > Dale