[PoC] Change the default pagesize on aarch64 from 4k to 16k to support apple hardware#530
[PoC] Change the default pagesize on aarch64 from 4k to 16k to support apple hardware#530kit-ty-kate wants to merge 2 commits intoSolo5:mainfrom
Conversation
|
For The current implementation creates a page table having mixed 1GB/2MB/4KB blocks. However, a page table having mixed 32MB/16KB blocks needs to be created to support Apple hardware. In addition, [1] https://github.com/Solo5/solo5/blob/master/tenders/hvt/hvt_cpu_aarch64.c#L38 16KB page size support requires slightly complicated work. 😢 |
This is an attempt at hotfixing #529 for 16k aarch64 hardware as I need to have a working solo5 to test mirage/ocaml-solo5#122 on my work laptop (apple M1 hardware).
I don't think this should be merged as-is as I think
sysconf(_SC_PAGESIZE)should be used instead but the goal is to show which parts of the code needs to change for solo5 to work on 16k pagesize hardware.As of afa7fdf: only
solo5-sptworks.solo5-hvtinfinit loops for some reason, so something else might be needed.