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;
+
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
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 */
+
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
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
5 matches
Mail list logo