1. try to use as large page as possible on attach 2. pre-map resident remote pages on attach Change-Id: I5580682a4199e94085a9bad9ce3958a0f14cdcea
12 lines
250 B
C
12 lines
250 B
C
#ifdef __aarch64__
|
|
#define LARGE_PAGE_SHIFT 21
|
|
#elif defined(__x86_64__)
|
|
#define LARGE_PAGE_SHIFT 21
|
|
#else
|
|
#error "Non-compliant architecture."
|
|
#endif
|
|
|
|
#define MAP_HUGE_SHIFT 26
|
|
#define SZ_MEM (2 * (1ULL << LARGE_PAGE_SHIFT))
|
|
#define TEST_VAL 0x1129
|