This is my first real zig code. So style, beginner stuff are all good suggestions.
I am looking for a review for on my kernel page allocator, it's a 2mib page allocator over raw heapspace. I want to be sure I have the atomics and logic correct before I put another layer over it for the kernel itself. This allocator at its core will be used for guest pages, the layer above will implement the zig allocator interface for the kernels own heap memory.
https://gitlab.com/vm-kit/vm-kit/-/blob/main/src/kalloc/root.zig