summaryrefslogtreecommitdiffstats
path: root/src/vlib/physmem.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-03-04 17:19:08 +0100
committerDamjan Marion <damarion@cisco.com>2018-03-05 11:34:16 +0100
commit1ba0fa4bfa3dcc9bd754b8b0b6a7c5045f9ba0dd (patch)
tree240c195346d726c7833e33b2b12f1648b4dc77d3 /src/vlib/physmem.h
parentd5ded2df0ff06fe9178696657ee53a31f7e4c81c (diff)
vlib: vfio code rework
Change-Id: I99cf3e7cc991aa7d32385a155c707a6516516117 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/physmem.h')
-rw-r--r--src/vlib/physmem.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/vlib/physmem.h b/src/vlib/physmem.h
index 1e053d65c0f..e99db7de72c 100644
--- a/src/vlib/physmem.h
+++ b/src/vlib/physmem.h
@@ -54,8 +54,9 @@ typedef struct
void *heap;
u32 flags;
-#define VLIB_PHYSMEM_F_INIT_MHEAP (1<<0)
-#define VLIB_PHYSMEM_F_FAKE (1<<2)
+#define VLIB_PHYSMEM_F_INIT_MHEAP (1 << 0)
+#define VLIB_PHYSMEM_F_HUGETLB (1 << 1)
+#define VLIB_PHYSMEM_F_SHARED (1 << 2)
u8 numa_node;
u64 *page_table;
@@ -66,6 +67,9 @@ typedef struct
typedef struct
{
+ u32 flags;
+#define VLIB_PHYSMEM_MAIN_F_HAVE_PAGEMAP (1 << 0)
+#define VLIB_PHYSMEM_MAIN_F_HAVE_IOMMU (1 << 1)
vlib_physmem_region_t *regions;
} vlib_physmem_main_t;