aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vlib/physmem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vlib/physmem.c b/src/vlib/physmem.c
index 0abfe7ece56..15e912fd9e7 100644
--- a/src/vlib/physmem.c
+++ b/src/vlib/physmem.c
@@ -104,8 +104,10 @@ vlib_physmem_init (vlib_main_t * vm)
vpm->flags |= VLIB_PHYSMEM_MAIN_F_HAVE_PAGEMAP;
vec_free (pt);
+#ifdef __linux__
if ((error = linux_vfio_init (vm)))
return error;
+#endif /* __linux__ */
p = clib_mem_alloc_aligned (sizeof (clib_pmalloc_main_t),
CLIB_CACHE_LINE_BYTES);