Re: [dpdk-dev] [PATCH v6 3/4] test: add test case to validate VFIO DMA map/unmap

2021-01-06 Thread David Christensen
On 1/6/21 12:40 AM, Nithin Dabilpuram wrote: On Tue, Jan 05, 2021 at 11:33:20AM -0800, David Christensen wrote: Hey Nithin, +static int +test_memory_vfio_dma_map(void) +{ + uint64_t sz1, sz2, sz = 2 * rte_mem_page_size(); + uint64_t unmap1, unmap2; + uint8_t *alloc_mem; +

Re: [dpdk-dev] [PATCH v6 3/4] test: add test case to validate VFIO DMA map/unmap

2021-01-06 Thread Nithin Dabilpuram
On Tue, Jan 05, 2021 at 11:33:20AM -0800, David Christensen wrote: > Hey Nithin, > > > > +static int > > > +test_memory_vfio_dma_map(void) > > > +{ > > > + uint64_t sz1, sz2, sz = 2 * rte_mem_page_size(); > > > + uint64_t unmap1, unmap2; > > > + uint8_t *alloc_mem; > > > + uint8_t *mem; > > > + in

Re: [dpdk-dev] [PATCH v6 3/4] test: add test case to validate VFIO DMA map/unmap

2021-01-05 Thread David Christensen
Hey Nithin, +static int +test_memory_vfio_dma_map(void) +{ + uint64_t sz1, sz2, sz = 2 * rte_mem_page_size(); + uint64_t unmap1, unmap2; + uint8_t *alloc_mem; + uint8_t *mem; + int ret; + + /* Allocate twice size of requirement from heap to align later */ +

Re: [dpdk-dev] [PATCH v6 3/4] test: add test case to validate VFIO DMA map/unmap

2020-12-17 Thread Nithin Dabilpuram
Hi David Christensen, Ping. Let me know if this way of allocation from heap is fine with POWER9 system. On Fri, Dec 18, 2020 at 12:36:03AM +0530, Nithin Dabilpuram wrote: > Test case alloc's system pages and tries to performs a user > DMA map and unmap both partially and fully. > > Signed-off-b

[dpdk-dev] [PATCH v6 3/4] test: add test case to validate VFIO DMA map/unmap

2020-12-17 Thread Nithin Dabilpuram
Test case alloc's system pages and tries to performs a user DMA map and unmap both partially and fully. Signed-off-by: Nithin Dabilpuram Acked-by: Anatoly Burakov --- app/test/meson.build | 1 + app/test/test_vfio.c | 107 +++ 2 files changed, 1