aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/pmalloc.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-10-25 15:56:04 +0200
committerDamjan Marion <dmarion@me.com>2018-10-25 15:21:59 +0000
commitc04e2b06ed8d2038e42b663b9d24ebc8fb719893 (patch)
tree6fffcb19a906b78c2f1867b7f40fb06395c26225 /src/vppinfra/pmalloc.h
parentdc8d35036f1d06193035ff4b6f161f2c1c17c35a (diff)
pmalloc: don't lock 4K pages if we don't have access to pagemap
Without pagemap access only way to do DMA to physmem is by using IOMMU. In such case VFIO will take care for preventing paging of such memory so we don't need to lock here. Change-Id: Ica9c20659fba3ea3c96202eb5f7d29c43b313fa9 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/pmalloc.h')
-rw-r--r--src/vppinfra/pmalloc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vppinfra/pmalloc.h b/src/vppinfra/pmalloc.h
index 41b85e0c517..9cd652971a6 100644
--- a/src/vppinfra/pmalloc.h
+++ b/src/vppinfra/pmalloc.h
@@ -60,6 +60,10 @@ typedef struct
typedef struct
{
+ /* flags */
+ u32 flags;
+#define CLIB_PMALLOC_F_NO_PAGEMAP (1 << 0)
+
/* base VA address */
u8 *base;