Akilan1999 / CHERI-FLEXPOINTER

This repo consists of the experiment on porting FlexPointer to CHERI.
0 stars 0 forks source link

Physically Contigous allocation #5

Open Akilan1999 opened 1 year ago

Akilan1999 commented 1 year ago

To work on writing a physically contagious allocator of memory.

Sources

The contigmalloc() function allocates size bytes of contiguous physical memory that is aligned to alignment bytes, and which does not cross a boundary of boundary bytes. If successful, the allocation will reside between physical addresses low and high. The returned pointer points to a wired kernel virtual address range of size bytes allocated from the kernel virtual address (KVA) map.

Potential source code to Port (https://github.com/DPDK/dpdk/blob/main/kernel/freebsd/contigmem/contigmem.c)

Akilan1999 commented 1 year ago
Akilan1999 commented 1 year ago

Interesting read -> "Contiguous memory allocation in Linux user-space": https://blog.linuxplumbersconf.org/2017/ocw/system/presentations/4669/original/Support%20user%20space%20POSIX%20conformant%20contiguous__v1.00.pdf

"Transparent Superpages for FreeBSD on ARM" https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/transparent-superpages-for-freebsd-on-arm