summaryrefslogtreecommitdiffstats
path: root/src/vlib/linux/vfio.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-10-24 17:08:26 +0200
committerMarco Varlese <marco.varlese@suse.de>2018-10-25 10:52:42 +0000
commit567e61d09cd00174203eff85f63a598420476951 (patch)
tree528e0fb979a25f990a552cbb3c4b14d491cff678 /src/vlib/linux/vfio.c
parent3935fc8527c340535a00108b78f3de064df50a7f (diff)
pmalloc: support for 4K pages
Change-Id: Iecceffe06a92660976ebb58cd3cbec4be8931db0 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/linux/vfio.c')
-rw-r--r--src/vlib/linux/vfio.c2
1 files changed, 1 insertions, 1 deletions
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)