From 567e61d09cd00174203eff85f63a598420476951 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Wed, 24 Oct 2018 17:08:26 +0200 Subject: pmalloc: support for 4K pages Change-Id: Iecceffe06a92660976ebb58cd3cbec4be8931db0 Signed-off-by: Damjan Marion --- src/vlib/linux/vfio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vlib/linux/vfio.c') diff --git a/src/vlib/linux/vfio.c b/src/vlib/linux/vfio.c index d300a683dd7..1ed99ceee55 100644 --- a/src/vlib/linux/vfio.c +++ b/src/vlib/linux/vfio.c @@ -40,7 +40,7 @@ vfio_map_physmem_page (vlib_main_t * vm, void *addr) vlib_physmem_main_t *vpm = &vm->physmem_main; linux_vfio_main_t *lvm = &vfio_main; struct vfio_iommu_type1_dma_map dm = { 0 }; - uword log2_page_size = vpm->pmalloc_main->log2_page_sz; + uword log2_page_size = vpm->pmalloc_main->def_log2_page_sz; uword physmem_start = pointer_to_uword (vpm->pmalloc_main->base); if (lvm->container_fd == -1) -- cgit 1.2.3-korg