papi: Use CMSG_SPACE for sizing ancillary buffer space
[vpp.git] / src / svm / svm_common.h
index ce31722..0e19ffd 100644 (file)
 #define __included_svm_common_h__
 
 #include <stdarg.h>
+#ifdef __FreeBSD__
+#include <stdint.h>
+#endif /* __FreeBSD__ */
 #include <pthread.h>
+#ifdef __linux__
+#include <sys/user.h>
+#endif /* __linux__ */
+#include <vppinfra/clib.h>
 #include <vppinfra/types.h>
 
 #define SVM_VERSION ((1<<16) | 1)      /* set to declare region ready. */
@@ -82,9 +89,9 @@ typedef struct svm_map_region_args_
  */
 #if __WORDSIZE == 64
 #ifdef CLIB_SANITIZE_ADDR
-#define HIGH_SEGMENT_BASEVA 0x300000000000
+#define HIGH_SEGMENT_BASEVA 0x300000000000     /* DO NOT CHANGE THIS: YOU'LL BREAK ASAN */
 #else /* CLIB_SANITIZE_ADDR */
-#define HIGH_SEGMENT_BASEVA (8ULL   << 30)     /* 8GB */
+#define HIGH_SEGMENT_BASEVA (128ULL << 30)     /* 128GB */
 #endif /* CLIB_SANITIZE_ADDR */
 #elif __WORDSIZE == 32
 #define HIGH_SEGMENT_BASEVA (3584UL << 20)     /* 3.5GB */